public static function startsWith($string, $needle, $strict = true) {
        $start = static::extract($string, 0, mb_strlen($needle));

        if ($strict) {
            return ($start === $needle);
        }

        return (mb_strtolower($start) === mb_strtolower($needle));
    }
public static function startsWith($string, $needle, $strict = true) {
        $start = static::extract($string, 0, mb_strlen($needle));

        if ($strict) {
            return ($start === $needle);
        }

        return (mb_strtolower($start) === mb_strtolower($needle));
    }
public static function startsWith ( $ string , $ needle , $ strict = true ) { $ start = static :: extract ( $ string , 0 , mb_strlen ( $ needle ) ) ; if ( $ strict ) { return ( $ start === $ needle ) ; } return ( mb_strtolower ( $ start ) === mb_strtolower ( $ needle ) ) ; }
Checks to see if the string starts with a specific value.

@param string $string
@param string $needle
@param bool $strict
@return bool
Checks to see if the string starts with a specific value .