includes()
The includes() method tests whether an array includes a certain value among its entries
Example.php
Syntax
Parameter
$needle
The value to search for.
The position in this array at which to begin searching for
valueToFind
.Defaults to
0
.
Return value
A
boolean
the whether the element exists in the array
Prefixing
References
Last updated