判断字符长度函数strlen实例教程
定义和用法
该strlen ()函数返回的长度字符串。
他的作用是计算字字符长度的,中文一个字为2
语法
strlen(string)
Parameter |
Description |
|---|---|
| string | Required. Specifies the string to check |
来看个简单的例子吧.
输出为
12
教程链接:https://www.phprm.com/function/php1004453.html
随意转载~但请保留教程地址★
定义和用法
该strlen ()函数返回的长度字符串。
他的作用是计算字字符长度的,中文一个字为2
语法
strlen(string)
Parameter |
Description |
|---|---|
| string | Required. Specifies the string to check |
来看个简单的例子吧.
输出为
12
教程链接:https://www.phprm.com/function/php1004453.html
随意转载~但请保留教程地址★