noob here! How I can get 'qty' value to print only 0 with json and php from:
{"XXXXXX":[],"XXXXXX":[],"total":[{"assetref":"","qty":0,"raw":0}]}
I've tried this
$m = json_encode('{"XXXXXX":[],"XXXXXX":[],"total":[{"assetref":"","qty":0,"raw":0}]}')
$multi = json_decode($m, true);
echo $multi->{'qty'};
And not work