PHP strlen() 函数

定义和用法

strlen() 函数返回字符串的长度。

语法

strlen(string)

参数描述
string 必需。规定要检查的字符串。

例子

<?php echo strlen("Hello world!"); ?>

输出:

12

posted @ 2015-01-30 11:40  dekevin  阅读(301)  评论(0编辑  收藏  举报