public static function pos($haystack, $needle, $offset = 0)
    {
        if (self::isMBString()) {
            return mb_strpos($haystack, $needle, $offset, self::$encoding);
        }

        return strpos($haystack, $needle, $offset); // @codeCoverageIgnore
    }
public static function pos($haystack, $needle, $offset = 0)
    {
        if (self::isMBString()) {
            return mb_strpos($haystack, $needle, $offset, self::$encoding);
        }

        return strpos($haystack, $needle, $offset); // @codeCoverageIgnore
    }
public static function pos ( $ haystack , $ needle , $ offset = 0 ) { if ( self :: isMBString ( ) ) { return mb_strpos ( $ haystack , $ needle , $ offset , self :: $ encoding ) ; } return strpos ( $ haystack , $ needle , $ offset ) ; // @codeCoverageIgnore }
Find position of first occurrence of string in a string

@param string $haystack
@param string $needle
@param int    $offset
@return int
Find position of first occurrence of string in a string