$searchValue = 4;
$fgs = array_filter($fgs_result, function($t) use ($searchValue) { return $t['grade'] == $searchValue; });
模糊查询可用
$fgs = array_filter($fgs_result, function($t) use ($searchValue) { return strpos($t['grade'] , $searchValue); });
网友评论