note 91138 added to function.call-user-func-array

From: Date: Wed, 27 May 2009 07:57:41 +0000
Subject: note 91138 added to function.call-user-func-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-156049@lists.php.net to get a copy of this message
Freek (at) Gruntjes.net: Read the fine NOTE in the text! "Referenced variables in param_arr are passed to the function by a reference, others are passed by a value. In other words, it does not depend on the function signature whether the parameter is passed by a value or by a reference." I.e., if you call it like this: <?php call_user_func_array('refFunc', array(&$var)); ?> it works precisely as you want. ---- Server IP: 80.67.2.2 Probable Submitter: 213.112.231.78 ---- Manual Page -- http://www.php.net/manual/en/function.call-user-func-array.php Edit -- https://master.php.net/note/edit/91138 Del: integrated -- https://master.php.net/note/delete/91138/integrated Del: useless -- https://master.php.net/note/delete/91138/useless Del: bad code -- https://master.php.net/note/delete/91138/bad+code Del: spam -- https://master.php.net/note/delete/91138/spam Del: non-english -- https://master.php.net/note/delete/91138/non-english Del: in docs -- https://master.php.net/note/delete/91138/in+docs Del: other reasons-- https://master.php.net/note/delete/91138 Reject -- https://master.php.net/note/reject/91138 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156049) next »