Re: Legal variable names
| From: | Sascha Schumann | Date: | Wed, 22 Nov 2000 16:24:12 +0000 |
| Subject: | Re: Legal variable names | ||
| References: | 1 | Groups: | php.lang |
| Request: | Send a blank email to php-lang+get-81@lists.php.net to get a copy of this message | ||
On Wed, 22 Nov 2000, André Langhorst wrote:
> > That's what I was asking. I just am rather careful there because somebody
> > wrote that code so he should have meant something by it - maybe there are
> > reasons I'm not aware of.
>
> well as discussed before this code is an relict from register_globals=on
>
> > With regard to php-lang, are there any opinions on whether
> > a construct like this should be legal?
> >
> > '${' expression '}'
> >
> > where expression evaluates to an arbitrary string, not
> > necessarily to an identifier (which is basically
> > [a-z][a-z0-9]*).
>
> why not? you can even use ä,ü,ö without using ${' äöü '}, should these
> be legal - let the user decide how to write his code
Do I understand you correctly that your explanation is
"because we can"?
Regardless, the above construct seems to be valid since PHP
3, so it will be part of the specification.
- Sascha