Legal variable names

From: Date: Wed, 22 Nov 2000 15:49:59 +0000
Subject: Legal variable names
References: 1  Groups: php.lang 
Request: Send a blank email to php-lang+get-79@lists.php.net to get a copy of this message
On Wed, 22 Nov 2000, Stanislav Malyshev wrote: > AL>> you don't hinder me doing ${' asdf asdlkfj'}=5; so why should you > AL>> strip > AL>> leading spaces? > > 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. 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]*). - Sascha

« previous php.lang (#79) next »