$strtrim function
$strtrim(string)
The $strtrim function removes leading and trailing spaces from string. If string is empty, the result is an empty string.
Parameters
All parameters may contain symbolic references; these are resolved before the function is applied. See Examples below.
- string
- String to trim.
Examples
Here is a usage example for this function:
- <$strtrim(Hello, world!\n)>
- Returns Hello, world! without the line break.