Definition and Usage
trim() function removes whitespace characters and other predefined characters from both ends of a string.
Syntax
trim(string,charlist) Parameter Description
string Required. Specifies the string to check.
charlist optional. Specifies the string to be converted. If this parameter is omitted, all the following characters are deleted:
Copy code The code is as follows:
"
http://www.bkjia.com/PHPjc/322032.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/322032.html
TechArticleDefinition and Usage The trim() function removes whitespace characters and other predefined characters from both ends of a string. Syntax trim(string,charlist) Parameter Description string Required. Specifies the string to check. ...