Below the first query has as total and when the returned data is printed it shows [total => 13110.
I want to find a way to grab the date direct and not haveing any luck.. I have tried everything i can think of..
$result['total']
$total[0]
$Array[0]
and on and on.. can anyone help..
Nothing i have tried seems to work...

PHP Code:
$results $wpdb->get_results('SELECT COUNT(*) as total FROM wp_realty_listingsdb WHERE latitude <> 0');
Array
(
    [
0] => stdClass Object
        
(
            [
total] => 13110
        
)
)

ON this one i have removed the as total and it shows [count(*)]=>13110 and cannot figure out how to get the variable direct either.
I can use it either way with or without the as total.. but need to find a way to put that answer into a simple variable.
can anyone help..

$results $wpdb->get_results('SELECT COUNT(*) FROM wp_realty_listingsdb WHERE latitude <> 0');
Array
(
    [
0] => stdClass Object
        
(
            [
COUNT(*)] => 13110
        
)