<?php
//$Input = [0,{"a":1,"b":2,"c":3,"d":[4,5]},[6,[7,8]],9,10]; <- isnt valid PHP.
$Input = '[0,{"a":1,"b":2,"c":3,"d":[4,5]},[6,[7,8]],9,10]';
$myArray = explode(',', $Input );
//print_r($myArray);
//$length = strlen($Input);
foreach($myArray as $my_Array){
echo $my_Array.'<br>';
}
$Output = '[1,{"a":2,"b":3,"c":4,"d":[5,6]},[7,[8,9]],10,11]';
?>
preferences:
68.71 ms | 402 KiB | 5 Q