note 90586 deleted from function.call-user-func-array by danbrown

From: Date: Wed, 29 Apr 2009 15:40:33 +0000
Subject: note 90586 deleted from function.call-user-func-array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154005@lists.php.net to get a copy of this message
Note Submitter: myke dot stubbs at escapemg dot com ---- In reply to Freek (at) gruntjes.net: Passing by reference is possible (as described in the call_user_func entry). I've modified your test case to work as such. Hope it helps. <?php function refFunc(&$var) { $var .= 'bar'; } $var = 'foo'; call_user_func_array('refFunc', array(&$var)); echo $var; ?>

« previous php.notes (#154005) next »