#45781 [Opn->Bgs]: request: more than 1 parameter for userdata in function "array_walk"

From: Date: Mon, 11 Aug 2008 18:57:09 +0000
Subject: #45781 [Opn->Bgs]: request: more than 1 parameter for userdata in function "array_walk"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127901@lists.php.net to get a copy of this message
ID: 45781 Updated by: johannes@php.net Reported By: Ultrasick at gmx dot de -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: irrelevant PHP Version: 5.2.6 New Comment: You can simply use an array for your data items... Previous Comments: ------------------------------------------------------------------------ [2008-08-11 03:56:38] Ultrasick at gmx dot de changed summary because of wrong word in it ------------------------------------------------------------------------ [2008-08-11 03:55:27] Ultrasick at gmx dot de Description: ------------ The syntax of the function "array_walk" is currently as below: bool array_walk(array &$array, callback $funcname [, mixed $userdata]) It would be an improvement if there would be more than 1 parameter for the user data available. Similar like for the array_merge function: bool array_walk(array &$array, callback $funcname [, mixed $userdata1 [, mixed $userdata2 [, mixed $...]]]) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45781&edit=1

« previous php.bugs (#127901) next »