RE: [PHP] something like array_walk?

From: Date: Fri, 15 Nov 2002 10:22:15 +0000
Subject: RE: [PHP] something like array_walk?
Groups: php.general 
Request: Send a blank email to php-general+get-124577@lists.php.net to get a copy of this message
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 (#124577) next »