<?php $json = '{ "0" : "test1" }'; $obj = json_decode($json); $array = (array) $obj; var_dump($obj, $array, $array['0'], $array[0], $array[2]);
You have javascript disabled. You will not be able to edit any code.