foreach($results as $key => $val){ $temp = current($val); # fetch first value, which is array in your example echo $temp['lat']; } ...
stackoverflow.com