in_array()
function in_array(mixed $needle, array $haystack, bool $strict = false): bool
Checks if a value exists in an array.
Parameters:
$needle(mixed)$haystack(array)$strict(bool), defaultfalse, optional
Returns: bool
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how in_array is implemented in the compiler, see the internals page.