判斷一維數組或者多維數組中是否有某個值,

//驗證一維數組或多維數組中有某個值 function deep_in_array($value, $array) { foreach($array as $item) { if(!is_array($item)) { if ($item == $value) { return true; }
相關文章
相關標籤/搜索