$jj_post
is the array output debug via print_r()
. This variable is an array of objects:
Array
(
[0] => stdClass Object
(
[ID] => 2571
)
)
I access the object property, ID, via code like this:
$jj_post_id = $jj_post[0];
$jj_ID = $jj_post_id->ID;
So, is there a shorter way, cause this is the only thing I know and I feel the code little bit too long?