PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
You mean so you end up with a multidimension array, where [0][2] is the third word of line 1, and [1][1] is the second word of line 2 etc ?
If so then something like the following should do it.