如何从这个PHP数组中提取值

I'm rather new to PHP and I'm trying to pull specific values from an array

My code is $zc1 = DB::query('select lat, lon from zips where zip_code=?', $zip1);

When I return print_r($zc1); I get the following

Array ( [0] => stdClass Object ( [lat] => 38.296199798584 [lon] => -77.485298156738 ) )

My question is how do I get the values of "lat" and "lon"?

I'm using the PHP framework Laravel by the way.

This is so basic, that if you don't know this you should probably read a book or two on PHP.

Having said that, here's how:

$lat = $zc1[0]->lat;
$lon = $zc1[0]->lon;