News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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



Similar Posts

Kore Nordmann\'s Blog: New Image_3D release

DevShed: Unit Testing

Roy Ganor-Shwaartz's Blog: PDT Gets Smarty

RefreshinglyBlue Blog: PHP vs Ruby - Practical Language Differences

Stubbles Blog: My wishlist for PHP 6, pt1: The 'object' type hint


Community Events









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


package zendframework ajax conference code releases developer security job mysql example cakephp PHP5 framework zend book release database PEAR application

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