array_walk
| From: | Chris Boget | Date: | Thu, 06 Jun 2002 13:47:11 +0000 |
| Subject: | array_walk | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-100929@lists.php.net to get a copy of this message | ||
If you use array_walk with an associative array, the only
arguments that PHP automatically passes to the defined
array are the numerical/element keys. Is there any way
you can force it to pass the associative keys?
For example, I have an array:
$bob = array( "this" => "other" );
Instead of passing "this" and "other" to your array, PHP
passes "0" and "other". Is there any way I can make it
so that it passes "this"?
Chris