public static function StartsWith($haystack, $needle)
    {
        $length = static::Length($needle);

        return substr($haystack, 0, $length) === $needle;
    }
public static function StartsWith($haystack, $needle)
    {
        $length = static::Length($needle);

        return substr($haystack, 0, $length) === $needle;
    }
public static function StartsWith ( $ haystack , $ needle ) { $ length = static :: Length ( $ needle ) ; return substr ( $ haystack , 0 , $ length ) === $ needle ; }
Determine if the given string starts with the given substring.

@param string $haystack string
@param string $needle   substring

@return bool
Determine if the given string starts with the given substring .