News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

David Coallier's Blog:
PHP Namespaces (Part 2 Namespace constants)
August 27, 2007 @ 08:58:00

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.

0 comments voice your opinion now!
namespace php6 constants import const package namespace php6 constants import const package


blog comments powered by Disqus

Similar Posts

Richard Davey's Blog: A Guide to using CVS Dude with NuSphere PhpED

DynamicWebPages.de: PHP at LinuxTag 2006 - May 3rd-6th

Firman Wandayandi\'s Blog: The First Stable of Math_Numerical_RootFinding is Out!

Pierre-Alain Joye's Blog: Build cairo on windows, step #1

Pierre-Alain Joye\'s Blog: PEAR Template IT bugs fixes release


Community Events





Don't see your event here?
Let us know!


podcast voicesoftheelephpant interview symfony framework deployment list series community code tips laravel conference introduction release zendserver language api bugfix threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework