How can I echo the 33 from this printed array directly?
Array (
[0] => stdClass Object (
[max(renr)] => 333
)
)
How can I echo the 33 from this printed array directly?
Array (
[0] => stdClass Object (
[max(renr)] => 333
)
)
$array[0]->{'max(renr)'}
SELECT max(renr) AS renrMax->{'max(rend)'} solution.Well that's gonna depend on your language, but assuming PHP from the look of it...
$arr[0]->max(renr)
But to be far, I don't know what an index of max(renr) means
$arr[0]->{'max(renr)'} You need the curly braces to access the value because of the parentheses.