Re: Splitting a string by the number of characters in the string?

From: Date: Fri, 30 Jul 2004 07:42:23 +0000
Subject: Re: Splitting a string by the number of characters in the string?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-192281@lists.php.net to get a copy of this message
On Friday 30 July 2004 15:44, Brent Clements wrote: > 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? substr() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Superstition, idolatry, and hypocrisy have ample wages, but truth goes a-begging. -- Martin Luther */

« previous php.general (#192281) next »