indexOf()
The indexOf() method get first index at which a given element can be found in the array
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
The first index of the element in the array. If not founded, returns
NULL
.
Prefixing
References
Last updated