Function

in_array

Synopsis

in_array(mixed, mixed, mixed ...): bool

Area
Runtime\PS\Core\Arrays\in_arrayareas

Description

in_array reports whether $needle occurs in $haystack, comparing loosely with PHP 8 rules unless $strict is true, which compares types as well as values.

Usage

$value = in_array($arguments);
$fn = in_array(...);

See also