- var_dump: documentation ( source)
- json_decode: documentation ( source)
- array_values: documentation ( source)
<?php
$json = <<<JSON
{
"a": {
"a": "10",
"q": "dumb text"
},
"b": {
"a": "23:00",
"q": "dumb text"
},
"c": {
"a": null,
"q": "dumb text"
}
}
JSON;
$decoded = json_decode($json);
$array = array_values((array) $decoded);
var_dump($array);