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. ...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn