Following up from his previous post about namespaces in the upcoming PHP6 version of the language, David Coallier has posted part two, a look at namespace constants.
Hello all, welcome to that part 2 of PHP Namespace education. Again, Dmitry comes up with another patch that has been discussed a bit on the php.internals list and this patch gives us the ability to declare Namespace constants (just like a class constant).
Included is some versy simple code that defines the constant with the "const" keyword and imports it via a packaged namespace using the double-colons.