News Feed
Sections




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

David Coaller's Blog:
Namespaces part 1.2 Namespaces
November 08, 2007 @ 11:17:00

David Coaller has posted about a major change in the way namespaces will be implemented in the upcoming PHP 5.3 release - a change from using "import" to "use" for including a namespace in your code.

PHP Namespaces are no longer using the "import" keyword, this has been replaced to the keyword "use". Quite simple he ? There are a few reasons behind that move, but let's all drop the political reasons and say at least that many many projects in the open source world do use the import() function to do all sorts of weird imports, and it's just simpler to use "use".

He also links to the original email from Stanislav about the reasoning behind change. He's also updated his previous post to reflect the change.

0 comments voice your opinion now!
namespace import use change implement namespace import use change implement


blog comments powered by Disqus

Similar Posts

Pierre-Alain Joye's Blog: Filter 0.10.0 released

Sean Coates' Blog: Actually Solving a Problem (believe it or not)

Matthew Weier O'Phinney: Testing Code That Emits Output

Master Zend Framework: Change Layout in Controllers and Actions in Zend Framework 2

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


Community Events

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


introduction psr7 release voicesoftheelephpant api development community unittest framework language laravel opinion podcast series library video laravel5 interview conference extension

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