Posted On: Feb 27, 2020
The str_split function used to partition of the string into equal length. Then the string part becomes an array element. The array element contains the remaining end string.
$str1 = 'abcdefghijklmnopqrstuvwxyzpq'; $split1 = str_split($str1, 5); print_r($split1);
OUTPUT of the following code
Never Miss an Articles from us.