I was looking for over 3 hours on the internet how to get data from stdclass Object and none of these solution I found worked.
So what I have is simple mysql query
$park = $wpdb->get_row("SELECT COUNT(1) FROM wp_richreviews WHERE review_status='1'");
And then print it
if($park)
{
print_r($park);
}
Then it will show this
stdClass Object ( [COUNT(1)] => 2 )
But I want to recieve just "2" and not the stdclass object bla bla..
can anyone help me please ? thank you!
print_rtoecho?