split each element of an array

From: Date: Tue, 22 Aug 2000 20:38:00 +0000
Subject: split each element of an array
Groups: php.general 
Request: Send a blank email to php-general+get-13016@lists.php.net to get a copy of this message
hey all, I would like to split each element of an array by a maximum number of characters. this is what i've got in perl: for (@stuff) { push @newstuff, /(.{1,750})/sg } which keeps the array in sequence and pushes a new element if the element string is longer than 750 characters. I thought it would be easy to do in PHP but it isn't (for me) ;( Could someone point me in the right direction - (array_walk, array_push, am I even getting warm?) Matthew Luchak Senior Developer Special Projects Mamma.com http://www.62662.com http://www.Mamma.com tel: 514-908-4336 matthew@mamma.com

« previous php.general (#13016) next »