$str='张三,李四,王五 ,赵六'; $arr=explode(',',$str); $total_element=count($arr); //total_element就是数组元素的个数;
PHP以逗号为分割点,计算数组有长度
猜你喜欢
转载自www.cnblogs.com/zhangpooo/p/12555911.html
今日推荐
周排行