Method: str::trim
A more brutal way to trim.
It removes double spaces.
Can be useful in some cases but
be careful as it might remove too much.
Info
Syntax
str::trim($string)
Parameters
- $string (string) The string to trim
Return (string)
The trimmed string