Hi there - I've had a search and can't find a solution...
I have an single dimensional array which holds the url of a number of different pages - with each url having many (and different) key = value sequences.
e.g.
array[0]=
name0=chris&surname0=bodeley&age=23&occupation=blah.....etc
array[1]=
name1=test....etc
I then want this string (say in array[0]) to be split into key value pairs such as the associative array construct to create a new array..
e.g.
"name0"=>"chris",
"surname0"=>"bodeley",
etc..
so I can then use the 'extract' function to call the said values..
I've got to the point of using the explode function (on '&') into a temp array but this generates (when using the print_r function) [0]=>name0=chris, [1]=>surname0=bodeley .... then I've trying explode'ing this again on the '=' char and finally using a for loop to enter them into the associative array ... but it doesn't really work
Can anyone suggest a better solution than the (incorrect) one I've come up with so far...
Many thanks,
Chris.