- json_decode: documentation ( source)
- print_r: documentation ( source)
- json_encode: documentation ( source)
<?php
$array = ["key" => "value", "array" => [1, 2, 3, 4]];
$json = json_encode($array);
echo $json;
$object = json_decode($json);
print_r($object);