Re: something like array_walk?

From: Date: Fri, 15 Nov 2002 10:32:11 +0000
Subject: Re: something like array_walk?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124580@lists.php.net to get a copy of this message
Thanks! Just what I was looking for! "Jon Haworth" <jhaworth@witanjardine.co.uk> wrote in message news:67DF9B67CEFAD4119E4200D0B720FA3F0241E788@BOOTROS... > Hi, > > > I want to take an array and get the soundex() for each element > > in that array and return the results into another array. > > How about: > > $color = array("blue", "green", "orange", "purple", > "red", "yellow"); > $soundex = array(); > > foreach ($color as $foo) { > $soundex[] = soundex($foo) > } > > HTH > > Cheers > Jon

« previous php.general (#124580) next »