Splitting a string line by line
Posted: Fri Mar 19, 2004 2:20 am
Using explode, I'd like to split something like the following:
Where each line is separated in to elements [0] , [1] , [2] and [3].
The question I have is how to reset the pointer at the beginning of each new line to ensure I don't have [0] [1] [2] [3] [4] [5] [6]... etc.
What thinkest thou?
Code: Select all
This|is|a|line
This|is|a|line2|The question I have is how to reset the pointer at the beginning of each new line to ensure I don't have [0] [1] [2] [3] [4] [5] [6]... etc.
What thinkest thou?