Is there any php function such as in_array for associative arrays you get by the mysql function \"mysql_fetch assoc\" ?
For example, if I have an $array that looks l
Here is a one liner you can use.
$isInArray = in_array(1, array_column($names, 'ID'));