我可以想象,最简单的方法是解码为关联数组而不是stdClass对象
$obj2 = json_depre( $json, true );foreach ( $obj2['streets'] as $coords => $street ){ echo $coords;}
我可以想象,最简单的方法是解码为关联数组而不是stdClass对象
$obj2 = json_depre( $json, true );foreach ( $obj2['streets'] as $coords => $street ){ echo $coords;}