# Keywords for class names

- Thread: https://externals.io/message/13360
- Original archive: https://news-web.php.net/php.internals/13360
- Started by Pfenniger Jonas on 2004-10-17T09:11:41+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13360 — Pfenniger Jonas — 2004-10-17T09:11:41+00:00

URL: https://externals.io/message/13360#13360

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

---

## #13361 — Derick Rethans — 2004-10-17T11:13:55+00:00

URL: https://externals.io/message/13360#13361 · In reply to: #13360

Hello,



> 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

---

## #13362 — Christian Schneider — 2004-10-17T11:31:07+00:00

URL: https://externals.io/message/13360#13362 · In reply to: #13361

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

---

## #13364 — Pfenniger Jonas — 2004-10-17T16:22:21+00:00

URL: https://externals.io/message/13360#13364 · In reply to: #13362

Christian Schneider wrote:
> Derick Rethans wrote:
> 
> > […]
> 
> 
> 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
