in_array() in php

The in_array() function returns true or false, depending on whether the first argument is an element in the array given as the second argument if (in_array(to_find, array [, strict])) { … } If the optional third argument is true, the types of to_find and the value in the array must match. The default is to … Read more