2025年01月24日 建站教程
如何利用php语法中自动的函数计算中文字符串的长度,下面web建站小编给大家简单介绍一下mb_strlen()
函数和iconv_strlen()
函数的用法!
利用iconv_strlen()函数计算字符串长度
$str = 'web建站教程'; $len = iconv_strlen($str, 'UTF-8');
利用mb_strlen()函数计算字符串长度
$str = 'web建站教程'; $len = mb_strlen($str, 'UTF-8');
本文链接:http://so.lmcjl.com/news/21951/