private function strposArray($haystack, $needles)
    {
        if (is_array($needles)) {
            foreach ($needles as $needle) {
                if (($strpos = strpos($haystack, $needle)) !== false) {
                    return $strpos;
                }
            }
        }
        return false;
    }
private function strposArray($haystack, $needles)
    {
        if (is_array($needles)) {
            foreach ($needles as $needle) {
                if (($strpos = strpos($haystack, $needle)) !== false) {
                    return $strpos;
                }
            }
        }
        return false;
    }
private function strposArray ( $ haystack , $ needles ) { if ( is_array ( $ needles ) ) { foreach ( $ needles as $ needle ) { if ( ( $ strpos = strpos ( $ haystack , $ needle ) ) !== false ) { return $ strpos ; } } } return false ; }
Find the position of the first occurrence of any of several substrings
in a string

@param string $haystack The string to search in.
@param mixed $needles Array of strings to search for. If a needle is
not a string, it is converted to an integer and applied as the
ordinal value of a character.
@return int|boolean Returns the position of where the first found needle
exists relative to the beginning of the haystack string (independent
of offset). Also note that string positions start at 0, and not 1.
Returns `false` if the needle was not found.
Find the position of the first occurrence of any of several substrings in a string