Thanks! That helped! I didn't need the trim though... It brought my project together, better!
"Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > php.net/chunk_split > php.net/explode > > explode("\r\n", trim(chunk_split($String, 3, "\r\n"))); > > > On Monday 26 May 2003 06:16 pm, zavaboy wrote: > > Hi, How can I break a string every N (eg: 3) characters? > > > > //Suppose I have a string... > > $String = "001102203304405"; > > //Now, how do I break this string every 3 characters? > > //So... > > $String[0] = "001"; > > $String[1] = "102"; > > $String[2] = "203"; > > $String[3] = "304"; > > $String[4] = "405"; > > > > Thanks in advance! > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php