public static function strStr($haystack, $needle, $beforeNeedle = false)
    {
        if (self::isMBString()) {
            return mb_strstr($haystack, $needle, $beforeNeedle, self::$encoding);
        }

        return strstr($haystack, $needle, $beforeNeedle); // @codeCoverageIgnore
    }
public static function strStr($haystack, $needle, $beforeNeedle = false)
    {
        if (self::isMBString()) {
            return mb_strstr($haystack, $needle, $beforeNeedle, self::$encoding);
        }

        return strstr($haystack, $needle, $beforeNeedle); // @codeCoverageIgnore
    }
public static function strStr ( $ haystack , $ needle , $ beforeNeedle = false ) { if ( self :: isMBString ( ) ) { return mb_strstr ( $ haystack , $ needle , $ beforeNeedle , self :: $ encoding ) ; } return strstr ( $ haystack , $ needle , $ beforeNeedle ) ; // @codeCoverageIgnore }
Finds first occurrence of a string within another

@param string $haystack
@param string $needle
@param bool   $beforeNeedle
@return string
Finds first occurrence of a string within another