Skip to content

Kirby 4.4.1

Str::trim()

Safe trim alternative

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

Parameters

Name Type Default
$string * string
$trim string ' '

Return type

string

Parent class

Kirby\Toolkit\Str