$pass = array(); foreach ($var as $index) { if($index['Data']['Show'] == false) continue; $pass[] = $index; } echo json_encode($pass);
我需要知道如何以更简化和更快的速度获得相同的结果.
php foreach
foreach ×1
php ×1