note 10742 added to Passing by Reference
| From: | kluka at pobox dot sk | Date: | Fri, 19 Jan 2001 22:22:34 +0000 |
| Subject: | note 10742 added to Passing by Reference | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9980@lists.php.net to get a copy of this message | ||
I've forgot: This will NOT enable the example from the `What References Are Not' section
work.
$baz = 'baz';
function foo($v) { $v = &GLOBALS['baz']; }
$bar = 'bar';
foo(&$bar);
print $bar;
prints 'bar'.
http://www.php.net/manual/en/language.references.pass.php