php 读取 "特殊" 文本文件解决思路

WBOY
Release: 2016-06-13 10:09:00
Original
820 people have browsed it

php 读取 "特殊" 文本文件
用fopen打开后,一行行读,[email protected],当有(标签开始时开始读)读里面的三个属性,再遇下一个标签后,就把前三个作为数组拿出来,也就是把每个标签中间的读完是三个元素的数组拿出来处理,读完为止.
这样的方法怎么写呀?
#vision1.1
@fileid=0010

name=xx
id=0
orth=zzz

name=xx
id=801
orth=/btf/sub.txt


name=xx
id=101
orth=/bbs/test.txt



------解决方案--------------------
不是已经回复过了吗?怎么又来了?
------解决方案--------------------

探讨

不是已经回复过了吗?怎么又来了?

------解决方案--------------------
探讨

不好意思哦 我试试不能删除的好像 至少有一个人回答才可以结的
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!