S
Shadowfax
Guest
I have a PHP script that reads contents of a text file... Every line start with a string that gives some additional information about the content of the line.. You may say it is an identifier ...
Example
<!--Identifier 1--> This line gives more info about Product 1
<!--Identifier 2--> This line gives more info about Product 2
<!--Identifier 3--> This line gives more info about Product 3
and so on
Now I want to ignore some lines based on the identifier .. Say I want to ignore all lines which have Identifier 2 in it... How can this be accomplished?
Example
<!--Identifier 1--> This line gives more info about Product 1
<!--Identifier 2--> This line gives more info about Product 2
<!--Identifier 3--> This line gives more info about Product 3
and so on
Now I want to ignore some lines based on the identifier .. Say I want to ignore all lines which have Identifier 2 in it... How can this be accomplished?