为啥结果为5?
php吧
全部回复
仅看楼主
level 1
xcmd5201
楼主
<?php
$str=array("大","更","创","天","科","客","博","技","立","新");
$word=strlen($str);
echo $word;
?>
2023年08月02日 11点08分
1
level 7
冰火6666
没毛病啊,array,正好5个字母
2023年08月02日 13点08分
3
level 16
SeaDrip_Poplar
count($str)
2023年08月02日 23点08分
4
level 1
xcmd5201
楼主
顶
2023年08月03日 07点08分
5
level 10
江山🌛
上边不是有老哥说了吗,用count($str)
2023年08月03日 13点08分
6
level 12
海角七号-▫
服了
2023年08月05日 03点08分
7
level 7
1902291251
哈哈哈哈哈……
2023年08月08日 12点08分
8
level 6
周存存
如果一定要用strlen,用implode函数组合起来
2023年08月09日 00点08分
9
level 13
金属大师95926
没毛病啊,array一共5个字符
2023年08月21日 00点08分
10
1