note 14280 deleted from language.references.pass by sniper

From: Date: Tue, 30 Sep 2003 01:24:52 +0000
Subject: note 14280 deleted from language.references.pass by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57343@lists.php.net to get a copy of this message
Note Submitter: t1@mail.com ---- Please note, PHP is moving to eliminate passing variables by reference on the function call. You must declare the variable is pass-by-ref in the function definition. In the past this was possible, given the following function definition: function foo ( $a ) { ... } $b = 5; foo ( &$b ); In your php.ini, it is stated that they are moving to eliminate this. Thus, you should (for future compatability) not use this method. Instead, you should do: function ( &$a ) { ... } $b = 5; foo ( $b );

« previous php.notes (#57343) next »