- json_decode: documentation ( source)
- print_r: documentation ( source)
- json_encode: documentation ( source)
<?php
$array = array(
"test" => 123,
"test2" => 345,
"text3" => array("awesome")
);
$a = json_encode($array);
$b = json_decode($a);
echo "<pre>";
print_r($array, true);
print_r($b, true);