note 86712 added to function.array-walk

From: Date: Fri, 31 Oct 2008 07:18:27 +0000
Subject: note 86712 added to function.array-walk
Groups: php.notes 
Request: Send a blank email to php-notes+get-145989@lists.php.net to get a copy of this message
When i pass the third parameter by reference in php5.2.5, happened this: Warning: Call-time pass-by-reference has been deprecated - argument passed by value... And to set allow_call_time_pass_reference to true in php.ini won't work, according to http://bugs.php.net/bug.php?id=19699 thus to work around: <?php array_walk($arrChnOut, create_function('&$v, $k, $arr_rtn', 'if ($k{0}!="_") {$arr_rtn[0]["_".$v[\'ID\']]=$v; unset($arr_rtn[0][$k]);}'), array(&$arrChnOut)); ?> ---- Server IP: 209.41.74.194 Probable Submitter: 64.70.54.16 ---- Manual Page -- http://www.php.net/manual/en/function.array-walk.php Edit -- https://master.php.net/note/edit/86712 Del: integrated -- https://master.php.net/note/delete/86712/integrated Del: useless -- https://master.php.net/note/delete/86712/useless Del: bad code -- https://master.php.net/note/delete/86712/bad+code Del: spam -- https://master.php.net/note/delete/86712/spam Del: non-english -- https://master.php.net/note/delete/86712/non-english Del: in docs -- https://master.php.net/note/delete/86712/in+docs Del: other reasons-- https://master.php.net/note/delete/86712 Reject -- https://master.php.net/note/reject/86712 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145989) next »