Is there any way besides for explode to convert a php string that looks like: "[2,0,[]]" into an array?
My array output should be like:
array(2,0,array())
And "[2,0,[1,2,3,4]]" this sting should be:
array(2,0,array(1,2,3,4))
I do not want to use explode because it just seems like to much code for a very simple task. in javascript it is a one liner:
JSON.parse('[2,0,[1,2,3,4]]');