note 79893 added to function.array-walk
| From: | alex at example dot com | Date: | Tue, 18 Dec 2007 13:04:34 +0000 |
| Subject: | note 79893 added to function.array-walk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133749@lists.php.net to get a copy of this message | ||
Jon Langevin code :
<?php
array_walk($array1, 'userfunction', &$array2byreference);
function userfunction(&$array1value, $key, $array2){
// process $array1value and $array2, $array2 will retain the values
}
?>
gives a php warning (call time by reference etc ...)
(PHP 5.2.5 and others I suppose)
Is there a clue for this ?
----
Server IP: 217.174.196.197
Probable Submitter: 86.209.191.181
----
Manual Page -- http://www.php.net/manual/en/function.array-walk.php
Edit -- https://master.php.net/note/edit/79893
Del: integrated -- https://master.php.net/note/delete/79893/integrated
Del: useless -- https://master.php.net/note/delete/79893/useless
Del: bad code -- https://master.php.net/note/delete/79893/bad+code
Del: spam -- https://master.php.net/note/delete/79893/spam
Del: non-english -- https://master.php.net/note/delete/79893/non-english
Del: in docs -- https://master.php.net/note/delete/79893/in+docs
Del: other reasons-- https://master.php.net/note/delete/79893
Reject -- https://master.php.net/note/reject/79893
Search -- https://master.php.net/manage/user-notes.php