<?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);
for ($i=0; $i<$length; ++$i) {
// echo $Input[$i];
}
$Output = '[1,{"a":2,"b":3,"c":4,"d":[5,6]},[7,[8,9]],10,11]';
?>
preferences:
35.72 ms | 402 KiB | 5 Q