1
Hey i've got a stupid PHP question.
I'm trying to figure out how I can tokenize a string to array that's set up like this... the string will look like...
[info1][info2][info3][info4]...
I want to extract each data item between the [,] brackets into seperate members of the array. so the array would like like..
array[0] = info1
array[1] = info2
array[2] = info3
array[3] = info4
...
I know you can do this with ereg() but I am unfamiliar with it and having stared at a book for past 15 minutes I still can't seem to understand how to get it to do what I want. Thanks to whoever can help.