src/Text.php
public function chunk($splitLength = 1) {
		$this->verifyPositive($splitLength, 'The chunk length');

		return new ArrayObject(str_split($this->string, $splitLength));
	}
public function chunk($splitLength = 1) {
		$this->verifyPositive($splitLength, 'The chunk length');

		return new ArrayObject(str_split($this->string, $splitLength));
	}
public function chunk ( $ splitLength = 1 ) { $ this -> verifyPositive ( $ splitLength , 'The chunk length' ) ; return new ArrayObject ( str_split ( $ this -> string , $ splitLength ) ) ; }
Convert the string to an array

@param int $splitLength Maximum length of the chunk.

@return ArrayObject
If the optional splitLength parameter is specified, the returned array will be
broken down into chunks with each being splitLength in length, otherwise each chunk
will be one character in length.
If the split_length length exceeds the length of string, the entire string is returned
as the first (and only) array element.
@throws \InvalidArgumentException If splitLength is less than 1.
Convert the string to an array