Related Functions

trim

PHP 4.0+

Removes whitespace or specified characters from both the beginning and end of a string, returning a cleaned version without modifying the original.

Description

The trim() Removes whitespace or specified characters from both the beginning and end of a string, returning a cleaned version without modifying the original.

Example