I am having trouble parsing a string to an array
The string is as EXACTLY as follows:
the_string="[[5,6,2,0,0,0,0],[0,2,0,2,0,3,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]]";
I need it to go into an array like this
level[0]=[5,6,2,0,0,0,0];
level[1]=[0,2,0,2,0,3,0],
level[2]=[0,0,0,0,0,0,0];
level[3]=[0,0,0,0,0,0,0];
any help would be appreciated