note 11815 added to language.references.arent.php
| From: | brian at kusala dot com | Date: | Thu, 08 Mar 2001 12:08:14 +0000 |
| Subject: | note 11815 added to language.references.arent.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12031@lists.php.net to get a copy of this message | ||
You can get round the above problem somewhat using:
function foo (&$aVar)
{
$aVar['value'] =& $GLOBALS["baz"];
}
foo($bar);
$bar['value'] is now a reference to $GLOBALS["baz"] as you would expect.
http://www.php.net/manual/en/language.references.arent.php