Home >Backend Development >PHP Tutorial >php trim definition and syntax introduction to remove null characters_PHP tutorial

php trim definition and syntax introduction to remove null characters_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:37:06887browse

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

truehttp: //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