FANDOM


DescriptionEdit

in_array checks if a value exists in an array by searching haystack for needle.

ParametersEdit

{{{returns}}} in array (mixed needle, array haystack [, bool strict])


Parameter Infos Edit

Parameter PHP Version Type
in_array 4 or 5 returns bool
needle 4 or 5 mixed
haystack 4 or 5 array
strict 4 or 5 bool
For more details on this function, visit its entry in the php manual.