src/Str.php
public function split($delimiter, $limit = null) {
		if ($limit === null) {
			$limit = PHP_INT_MAX;
		}

		return self::fromArray(explode($delimiter, $this->rawString, $limit));
	}
public function split($delimiter, $limit = null) {
		if ($limit === null) {
			$limit = PHP_INT_MAX;
		}

		return self::fromArray(explode($delimiter, $this->rawString, $limit));
	}
public function split ( $ delimiter , $ limit = null ) { if ( $ limit === null ) { $ limit = PHP_INT_MAX ; } return self :: fromArray ( explode ( $ delimiter , $ this -> rawString , $ limit ) ) ; }
Splits this string into an array of substrings at the specified delimiter

@param string $delimiter the delimiter to split the string at
@param int|null $limit the maximum number of substrings to return (optional)
@return static[] the new instances of this class
Splits this string into an array of substrings at the specified delimiter