日期:2014-05-16 浏览次数:20586 次
$json = '[{"Name":"PM","Value":"224"},{"Name":"WD","Value":"25"},{"Name":"SD","Value":"34"}]'; $jsonArr = json_decode($json) ; foreach ($jsonArr as $value) { if($value->Name == 'WD'){ echo $value->Value."<br />"; } }