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

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

WBOY
Release: 2016-06-13 11:51:20
Original
838 people have browsed it

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template