On 5/10/05, Markus Fischer <[EMAIL PROTECTED]> wrote: > When the class is named SomeLongNameBecauseWedontHaveNamespaces and I > define a SELF_EXPLAINING_CONSTANT_NUMBER_ONE I've to write > SomeLongNameBecauseWedontHaveNamespaces::SELF_EXPLAINING_CONSTANT_NUMBER_ONE > to access it from within the class itself. > > Is there a way to reference constants from the same class (or dervived > class) in a friendlier way?
Hi Markus, I often use self::SELF_EXPLAINING_CONSTANT_NUMBER_ONE when in context of a class method itself. HTH Regards, Jason http://blog.casey-sweat.us/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php