Spit the string into an array of chunks of a given length.
Twine\Str::chunk( int $length ) : array
$length | The desired chunk length |
$string = new Twine\Str('john pinkerton');
$string->chunk(3); // Returns ['joh', 'n p', 'ink', 'ert', 'on']