Home  >  Article  >  Backend Development  >  诸位大侠,通过php 读取字符串 求帮忙

诸位大侠,通过php 读取字符串 求帮忙

WBOY
WBOYOriginal
2016-06-13 11:51:20797browse

各位大侠,通过php 读取字符串 求帮忙
$str="谢姣
毕丹丹
马朝莉
李欣
李萍";
有这么一段字符串 通过php处理字符串,得到 一个新的数组(名字,count值);
比如生成 $ars=array('0'=>'谢姣','0'=>'毕丹丹','0'=>'马朝莉','0'=>'李欣','1'=>'李萍');

求各大侠帮帮忙,感激不尽
------解决方案--------------------

没有string哪里的string 是你其他地方输出的吧

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn