Read lines separated by semicolon
Posted: Tue Jul 28, 2009 11:40 pm
Hi all
I have a text file whose sentences/texts are delimited by semicolons to indicate end of the current line, example
this is line 1;
this is line 2;
.
.
.
How can I write a php code to read the 1st line, assign to a variable, do some processing, then clear variable and read line 2 and so on?
I have a text file whose sentences/texts are delimited by semicolons to indicate end of the current line, example
this is line 1;
this is line 2;
.
.
.
How can I write a php code to read the 1st line, assign to a variable, do some processing, then clear variable and read line 2 and so on?