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

From: Date: Fri, 30 Jul 2004 07:42:05 +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-192280@lists.php.net to get a copy of this message
On Fri, 30 Jul 2004 02:44:19 -0500, Brent Clements <bclem@innovativephpsolutions.com> 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? > RTFM! Look at the See Alsos in the manual on the page for str_split. -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.general (#192280) next »