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.