PHP reads "Special" text files
With fopen Open, a line of reading, [email protected], when there is or (start reading at the beginning of the tag) read the three attributes, and then the next tag or or after the first three as an array Take out, that is, each label in the middle of the reading is three elements of the array to take out the processing, read so far.
How do you write such a method?
#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
------Solution--------------------
Have you answered it already? Why are you here again?
------Solution--------------------
Explore
Have you answered it already? Why are you here again?
------Solution--------------------
Explore
Oh, I'm sorry, I tried not to delete it. It seems that at least one person can answer.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service