Keywords for class names

php.internals

Pfenniger Jonas

21 years ago
Hi php developper, I want to know why you can't use php keywords as class names. It seems to me it's not a necessary constraint, but I may be wrong as I never looked at php's sourcecode. Thanks for you great work :) Cheers, zimba

Derick Rethans

21 years ago
Hello, On Sun, 17 Oct 2004, Pfenniger Jonas wrote:
> I want to know why you can't use php keywords as class names. > It seems to me it's not a necessary constraint, but I may be wrong as I > never looked at php's sourcecode.
It is necessary. Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Christian Schneider

21 years ago
Derick Rethans wrote:
> It is necessary.
Or in slightly more words: That's the way the whole syntax and parser are built. You'll have to accept it as a fact ;-) - Chris

Pfenniger Jonas

21 years ago
Christian Schneider wrote:
> Derick Rethans wrote: > >> It is necessary. > > > Or in slightly more words: That's the way the whole syntax and parser > are built. You'll have to accept it as a fact ;-) > > - Chris
Thanks for your answeres. I expected something like them :p Cheers, zimba