定义和用法
strlen() 函数返回字符串的长度。
语法
strlen(string)
参数 | 描述 |
---|---|
string | 必需。规定要检查的字符串。 |
例子
<?php echo strlen("Hello world!")
; ?>
输出:
12
定义和用法
strlen() 函数返回字符串的长度。
语法
strlen(string)
参数 | 描述 |
---|---|
string | 必需。规定要检查的字符串。 |
例子
<?php echo strlen("Hello world!")
; ?>
输出:
12
sizeof和strlen的区别
strlen() 函数
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M