I have an array that prints out like this:
Array
(
[0] => stdClass Object
(
[topics] => 13
[posts] => 80
)
)
How would I just print out the topics value?
Thanks
I have an array that prints out like this:
Array
(
[0] => stdClass Object
(
[topics] => 13
[posts] => 80
)
)
How would I just print out the topics value?
Thanks
echo $array[0]->topics;
![]()
Thanks!