note 49497 deleted from function.call-user-func by nlopess

From: Date: Sun, 30 Jan 2005 11:09:58 +0000
Subject: note 49497 deleted from function.call-user-func by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84208@lists.php.net to get a copy of this message
Note Submitter: jmarbas at hotmail dot com ---- For that example above saying that "the parameters for call_user_func() are not passed by reference": <?php function increment(&$var) { $var++; } $a = 0; call_user_func('increment', $a); echo $a; // 0 . . . well, you can use call_user_func('increment',&$a); and this will pass the parameter by reference? I dont know why this isnt indicated in the example?

« previous php.notes (#84208) next »