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.
<?php
$string = "hello world how are you";
print_r(str_split($string, 10));
?>
The output of the above code:
Array
(
[0] => hello worl
[1] => d how are
[2] => you
)