src/Support/Str.php
/**
	 * Strips $needle from the beginning of $haystack if it's there and returns the new string.
	 *
	 * @param string $haystack
	 * @param string $needle
	 * @return string
	 */
Strips $needle from the beginning of $haystack if it's there and returns the new string.
Strips $needle from the beginning of $haystack if it ' s there and returns the new string .
public static function stripBeginning($haystack, $needle) {
		if (static::startsWith($haystack, $needle)) {
			return mb_substr($haystack, mb_strlen($needle));
		}
		return $haystack;
	}
public static function stripBeginning ( $ haystack , $ needle ) { if ( static :: startsWith ( $ haystack , $ needle ) ) { return mb_substr ( $ haystack , mb_strlen ( $ needle ) ) ; } return $ haystack ; }
Strips $needle from the beginning of $haystack if it's there and returns the new string.
Strips $needle from the beginning of $haystack if it ' s there and returns the new string .