You can use the PHP function str_split() to split a string into substrings by length. This function converts a string to an array.
Here is an example:
The following example will create an array of substrings of length 10.
$string = "hello world how are you";
The output of the above code:
 => hello worl
 => d how are
 => you