Str::trim()
Safe trim alternative
Str::trim(string $string, string $trim = ' '): string
Parameters
Name | Type | Default |
---|---|---|
$stringrequired | string |
no default value |
$trim | string |
' '
|
Return type
string