0
我有JSON是这样的:如何获得json_decode值(PHP)
[{"lt":"1","lot":["0","0","0","0","0"]},{"lt":"2","lot":["0","0","0","0","0"]},{"lt":"3","lot":["0","0","0","0","0"]}]
,但我怎么能得到很多的价值?我能得到LT值,使用此代码IM:
$string = json_encode($results) // $results is my json data;
$json = json_decode($string);
foreach($json as $value){
echo $value->lt;
}