Pulling my hair out here..
My JSON output is like this:
Array (
[total] => 1
[rows] => Array (
[0] => Array (
[id] => 45
[name] => MacBook Pro (Retina 15-inch Late 2013)
[asset_tag] => 3041974
[serial] => C02M73123455
...etc...
How do I output only the [asset_tag] ?
I am using :
$responseArray=json_decode($results,true);
I have tried:
echo $responseArray['asset_tag'];
echo $responseArray[0]['asset_tag'];
echo $responseArray->asset_tag;
Thanks