strlen() 函数

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了strlen() 函数相关的知识,希望对你有一定的参考价值。

定义和用法

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

语法

strlen(string)

参数解析

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

示例

<?php
    echo strlen("I love Shanghai!");
?>

输出

16


本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1896225

以上是关于strlen() 函数的主要内容,如果未能解决你的问题,请参考以下文章