ID: 822 Updated by: jimw Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Feature/Change Request Assigned To: Comments: this was done in 4.0. Previous Comments: --------------------------------------------------------------------------- [1998-10-06 06:57:07] [EMAIL PROTECTED] 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 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=822&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]