Splitting a string by the number of characters in the string?
| From: | Brent Clements | Date: | Fri, 30 Jul 2004 07:44:19 +0000 |
| Subject: | Splitting a string by the number of characters in the string? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-192278@lists.php.net to get a copy of this message | ||
In PHP 5 there is a awesome function called str_split, is there an equivalent in PHP 4.x?
I need to do the following:
Split a 60 character string into 3 20 character array chunks.
using str_split I could easily do it, but how do I do it in PHP 4.x?
Thanks,
Brent