str_split()
str_split - Convert a string to an array
Syntax
array str_split (
string $string,
int $split_length)
Arguments
- string - The input string.
- split_length - Maximum length of the chunk.
Description
Converts a string to an array.
Version
PHP 5
Return value
If the optional split_length parameter is specified, the returned array will be broken down into chunks with each being split_length in length, otherwise each chunk will be one character in length.