turn json string into object in php code example
Example 1: php return json
header('Content-type: application/json');
echo json_encode($array);
Example 2: parse json phph
echo json_decode("[1,2,3]")[0];
header('Content-type: application/json');
echo json_encode($array);
echo json_decode("[1,2,3]")[0];