Hi guys,
I've got a problem trying to convert a string to a PHP array. I've been thinking of writing a function to do this, but not sure where to start.
I thought about exploding the data out, but then I have a problem if there is an array within the array (which is quite common with the data I have).
The format of the array is like so:
["test1","1234",500,500,"",4]
Some arrays may be like this, with other arrays inside them:
["test1",[1,2,3,4],500,[5,262,"test2"],"",4]
Is there any easy way to go about this?
Thanks for your help.
Regards,
Jason