Syntax
| From: | DvDmanDT | Date: | Sun, 04 May 2003 01:13:32 +0000 |
| Subject: | Syntax | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146317@lists.php.net to get a copy of this message | ||
I'm I the only person who thinks this code:
function &f(&$ref)
{
return $ref;
}
$var=10;
f($var) = 20;
should set $var to 20..? Instead it returns fatal error... It's valid in C++
(well, you can assign values to functions anyway)... This should be
implented in PHP too...