note 8571 deleted from Returning values by danbeck
| From: | danbeck@php.net | Date: | Wed, 25 Jul 2001 14:28:57 +0000 |
| Subject: | note 8571 deleted from Returning values by danbeck | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15818@lists.php.net to get a copy of this message | ||
erm, the above return by reference still has a parser error (Using PHP 4.01 Win32 compiler)
i.e. this causes an error
function &returns_reference() {
return &$someref;
}
$newref = &returns_reference();
To fix this and still keep the returning by reference thingy .... it should read as follows
function &returns_reference() {
return $someref;
}
$newref = &returns_reference();
Could someone in the great world of amazingness that is the realm of the PHP gods confirm this?