in_array Checks if a value exists in an array &reftitle.description; boolin_array mixedneedle arrayhaystack boolstrict&false; Searches haystack for needle using loose comparison unless strict is set. &reftitle.parameters; needle The searched value. If needle is a string, the comparison is done in a case-sensitive manner. haystack The array. strict If the third parameter strict is set to &true; then the in_array function will also check the types of the needle in the haystack. &reftitle.returnvalues; Returns &true; if needle is found in the array, &false; otherwise. &reftitle.examples; <function>in_array</function> example ]]> The second condition fails because in_array is case-sensitive, so the program above will display: <function>in_array</function> with strict example ]]> &example.outputs; <function>in_array</function> with an array as needle ]]> &example.outputs; &reftitle.seealso; array_search isset array_key_exists