- var_dump: documentation ( source)
- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$json = <<<JSON
a: {
date: "2017-11-27 17:59:59.000000",
timezone_type: 1,
timezone: "+01:00"
}
JSON;
echo $json;
$obj = json_decode($json);
var_dump(json_encode(new \DateTime));