Re: php7- dropping the $ from the variable name - rfc
| From: | Greg Beaver | Date: | Thu, 18 Sep 2008 22:10:34 +0000 |
| Subject: | Re: php7- dropping the $ from the variable name - rfc | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40559@lists.php.net to get a copy of this message | ||
marius popa wrote:
> I was looking at the examples used in php.js library
> http://phpjs.org/functions/index
> and it struck me that is cleaner to read the functions and code without the
> $ names in it
>
> From what i understand $ in front of variables is an Perl legacy
This would also eliminate constants from PHP, as currently they are
T_STRING and variables would become T_STRING. Not a good idea.
<?php
define('oops', 1);
$oops = 2;
echo $oops,' ',oops;
?>
Thanks,
Greg