Mon, 13/10/2008 - 22:39 — horuskol
Description
Returns the numeric position of either the first needle found in the haystack, or the first instance of a needle in the haystack.
Parameters
The string to search in
An array of strings to search in the haystack for
The optional offset parameter allows you to specify which character in haystack to start searching. The position returned is still relative to the beginning of haystack.
Option settings for how the search is conducted:
Return Values
Warning: This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE, such as 0 or "". Make sure to use the === operator for testing the return value of this function.