Definition and usage
The strlen() function returns the length of the string.
Its function is to calculate the character length of a word, one Chinese character is 2
Grammar
strlen(string)
Copy after login
Parameter Copy after login
|
Description |
string |
Required. Specifies the string to check |
|
Description |
string |
Required. Specifies the string to check |
来看个简单的例子吧.
Copy after login
<!--?phpecho strlen("Hello world!");?-->
Copy after login
http://www.bkjia.com/PHPjc/445521.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445521.htmlTechArticleDefinition and Usage The strlen() function returns the length of the string. Its function is to calculate the length of characters. One Chinese character is 2. Syntax strlen(string) Parameter Description string R...