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;
}