使用 php isset 遇到的问题


400 Bad Request

400 Bad Request


nginx/1.2.9
' EOF; */ $data = json_decode($httBody, true);//string if (isset($data['data'])) { //5.4之前为true //process data foreach ($data['data'] as $row) { // warning } } 可以用is_array提高兼容性 $data = json_decode($httBody, true); if (is_array($data)) { foreach ($data['data'] as $row) { } }

你可能感兴趣的:(php)