note 10741 deleted from language.references.pass by sniper

From: Date: Tue, 30 Sep 2003 01:25:01 +0000
Subject: note 10741 deleted from language.references.pass by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57345@lists.php.net to get a copy of this message
Note Submitter: kluka@pobox.sk ---- It is possible (tested with PHP4.0.3pl1) to pass _a_ reference, which is not the same as passing _by_ reference: function inc($n) { $n++; } $a = 1; inc($a); print "$a\n"; //prints 1, of course inc(&$a); print "$a\n"; // prints 2

« previous php.notes (#57345) next »