- json_decode: documentation ( source)
- print_r: documentation ( source)
<?php
//header('Content-Type: application/json');
$json = '{"hello" : "wow"}';
//$array = array("hello" => "wow");
//$json = json_encode($array);
$decode = json_decode($json, TRUE);
print_r($decode);
//echo $json;