case-insensitive Class Constants possible?

1 view
Skip to first unread message

Alex Weber

unread,
Oct 17, 2008, 2:40:44 PM10/17/08
to PHP Hacks
weird issue i ran into today...

its possible to define case-insensitive constants outside the scope of
a class using:

define('name', 'value', false);

however, you cannot use define() for Class Constants, to define a
Class Constant you have to use (inside class scope):

const 'name' = 'value';

So what happened to case-sensitivity here?
How can i define a case-insensitive Class Constant????

Thanks,

Alex
Reply all
Reply to author
Forward
0 new messages