Skip to content

Kirby 5.0.2

Str::rtrim()

Safe rtrim alternative

Str::rtrim(string $string, string $trim = ' '): string

Parameters

Name Type Default
$stringrequired string no default value
$trim string ' '

Return type

string

Parent class

Kirby\Toolkit\Str