Publisher review:indexOf an array element - Finds the first instance of an element ($needle) in an array ($haystack). Finds the first instance of an element ($needle) in an array ($haystack).
It works in ascending order (from element 0 to the array's length), can be easily modified to work in reverse if required. Will return either the index of the first occurance of false if hasn't been found.
indexOf an array element is a PHP script for Snippets scripts design by goldfish.
It runs on following operating system: Windows / Linux.
Operating system:Windows / Linux