Re: Legal variable names

[email protected] (Sascha Schumann)
Newsgroups php.lang
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.