定义和用法

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

语法

strlen(string)

参数解析

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

示例

<?phpechostrlen("IloveShanghai!");?>

输出

16