note 79893 rejected from function.array-walk by nlopess
| From: | nlopess@php.net | Date: | Tue, 18 Dec 2007 13:13:26 +0000 |
| Subject: | note 79893 rejected from function.array-walk by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133750@lists.php.net to get a copy of this message | ||
Note Submitter: alex at example dot com
----
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 ?