Anyone got any idea on how to deal with explode to miss elements if there nesting inside something? Examples below.
So i have a data structure like so…
{1,2,3,{4,2},5,6}
I am trying to convert that into a php array like so…
array( 1, 2, 3, array( 4, 2 ), 5, 6);
Any ideas on how that might work? Some suggestions have been Regex or explode while monitoring a state machine? ( but i have no idea on how they work :S )
You can try
Output