How to use PHP in_array with associative array?

In your case, I wonder if simply using isset() makes more sense, i.e.

isset($a[$key])

Leave a Comment