private function strposArray($haystack, $needles)
    {
        if (is_array($needles)) {
            foreach ($needles as $needle) {
                if (($strpos = strpos($haystack, $needle)) !== false) {
                    return $strpos;
                }
            }
        }
        return false;
    }