Bug #822: request on array_walk
| From: | be at SHonline dot DE | Date: | Tue, 06 Oct 1998 10:57:07 +0000 |
| Subject: | Bug #822: request on array_walk | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1699@lists.php.net to get a copy of this message | ||
From: be@SHonline.DE
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@lists.php.net
For help: php-dev-help@lists.php.net