[Solved] Check If In_Array (in Recursive Associative Array)
[ad_1] // $type could be code or name function check_in_array($arr, $value, $type = “code”) { return count(array_filter($arr, function($var) use ($type, $value) { return $var[$type] === $value; })) !== 0; } 4 [ad_2] solved Check If In_Array (in Recursive Associative Array)