PHP 4.0 Bug #822 Updated: request on array_walk

From: Date: Sat, 10 Feb 2001 17:32:17 +0000
Subject: PHP 4.0 Bug #822 Updated: request on array_walk
Groups: php.dev 
Request: Send a blank email to php-dev+get-46146@lists.php.net to get a copy of this message
ID: 822 Updated by: jimw Reported By: be@SHonline.DE 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] be@SHonline.DE 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

« previous php.dev (#46146) next »