News Feed
Jobs Feed
Sections




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

NetTuts.com:
Namespacing in PHP
October 02, 2012 @ 13:48:00

On NetTuts.com today there's a new tutorial introducing you to namespaces in PHP and a complete guide to the features that come with them.

It's been a bumpy ride, in regards to namespace support in PHP. Thankfully, it was added to the language in PHP 5.3, and the applicable structure of PHP code has improved greatly since then. But how exactly do we use them?

They start with a definition of a namespace (for those unfamiliar with the term) and get right into the code showing their use in PHP:

  • Defining a Namespace (and Sub-namespaces)
  • Calling Code from a Namespace (using Unqualified/Qualified/Fully Qualified names)
  • Dynamic calls
  • The namespace Keyword
  • Aliasing or Importing
0 comments voice your opinion now!
namespace tutorial introduction features examples


blog comments powered by Disqus

Similar Posts

Adam Trachtenberg's Blog: PHP Trivia Contest: DOM + Default Namespaces

Elizabeth Smith's Blog: How to Compile PHP5.2 and PHP-GTK2 on Windows using Visual C++ Express

Community News: PHP The Right Way adds Dependency Injection Information

DZone.com: Using a stream wrapper to access CouchDb attachments with PHP

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 7)


Community Events











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


facebook opinion unittest podcast composer symfony2 release component code example security framework language package introduction hhvm overview hack application install

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