trim()

 
Returns the value of string with leading and trailing spaces removed. ⇨ Version 5.32. Will now trim whitespace from arrays and structures. Previously the functions would convert arrays and structures to serialized data and then trim it. Arrays and structures are now iterated and all values within are trimmed appropriately.
Syntax
trim( string )
User Annotations: trim