$json_string='{"a":1,"b":2,"c":3}';
$res=json_decode($json_string);
print_r($res);
?>
The above example will output:
[$res] = Array (
[0] = Array (
(int) [a] => 1
(int) [b] => 2
(int) [c] => 3
)
)
====See Also====
[[array()]] - Create an array, with optional values
[[explode()]] - Turn a string into an array
[[implode()]] - Turn an array into a string
[[json_encode()]] - Encode an array as a JSON string
[[uphp:variables|uPHP Variable Types and Limits]]