判断字符长度函数strlen实例教程
定义和用法
该strlen()函数返回的长度字符串。
他的作用是计算字字符长度的,中文一个字为2
语法
strlen(string)
ParameterDescriptionstringRequired. Specifies the string to check
来看个简单的例子吧.
<?php echo strlen("Hello world!");
输出为
12
本文地址:http://www.phprm.com/function/49c3259ba86a62c0d409aa93da3ecf72.html
转载随意,但请附上文章地址:-)