[PHP-DEV] Bug #822: request on array_walk From: be <email protected>
Date: 10/06/98

From: be <email protected>
Operating system: any
PHP version: 3.0.5
PHP Bug Type: Feature/Change Request
Bug description: request on array_walk

it would be nice if the function (which array_wallk operates on) got
a second parameter passed: a string value which represents the
current key.

Now i could write

function output($val_ref, $key_name) {
  print("Element '$key_name' contains the value '$val_ref'\n");
}
array_walk(array(1,2,3,4), "output");

Thank You

Boris

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>