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