- var_dump: documentation ( source)
- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$arr = new StdClass;
$arr->{"count(distinct show_id)"} = 'foo';
$arr = Array($arr);
var_dump($arr);
// get it this way
var_dump($arr[0]->{"count(distinct show_id)"});
// or
var_dump(json_decode(json_encode($arr))[0]["count(distinct show_id)"]);