|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54325 Support variable names without dollar sign
Submitted: 2011-03-20 18:11 UTC Modified: 2011-04-04 04:56 UTC
From: ahmetdevel at umich dot edu Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.6 OS:
Private report: No CVE-ID: None
 [2011-03-20 18:11 UTC] ahmetdevel at umich dot edu
I believe the dollar sign in variable names to be a waste of precious keystrokes, 
and I would boldly suggest the requirement that variable names be prefixed with a 
dollar sign is removed. 

Currently, undefined literals are interpreted as strings (with a "Notice" fired). 
This is a hardly useful feature, as most useful strings will contain spaces. A 
better use of such tokens would be to interpret them as variables.

If this feature would not be seriously considered, I would appreciate any pointers 
into the relevant source code location(s) that needs to be modified to implement 
this feature.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-21 00:01 UTC]
-Status: Open +Status: Bogus
 [2011-03-21 00:01 UTC]
 [2011-03-21 00:51 UTC]
at first i was like :(
but then i was like LOL.
 [2011-03-25 12:51 UTC] anon at anon dot com
Literally lol'd.
 [2011-03-25 20:45 UTC] at_dot at dot_at dot com
Please keep this request online or archive it somewhere! Love it!
 [2011-04-01 14:43 UTC] emclaughlin at svmsolutions dot com
Keystrokes precious?  We've got some dwindling resources in this world, but 
keystrokes ain't one of them.
 [2011-04-01 16:01 UTC] robert dot e dot rouse at gmail dot com

Yeah, we're talking about dollar signs, not parenthesis.
 [2011-04-04 04:56 UTC]
-Block user comment: No +Block user comment: Yes
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 10:01:29 2024 UTC