Name
in_array
Synopsis
bool in_array(mixedvalue
, arrayarray
[, boolstrict
])
Returns true
if the given value exists in the
array. If the third argument is provided and is
true
, the function will return
true
only if the element exists in the array and
has the same type as the provided value (that is,
"1.23"
in the array will not match
1.23
as the argument). If the argument is not
found in the array, the function returns false
.
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.