|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-10 12:32 UTC] jimw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 14:00:01 2025 UTC |
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