News Feed
Sections




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

PHPBuilder.com:
A Twist In Namespaces
August 31, 2009 @ 12:54:43

In this new article from PHPBuilder.com they take a look at namespaces, a feature added in the recently released 5.3 version of PHP and a simple example of their use.

With PHP5.3--which is in itself a precursor and somewhat of a teaser for PHP 6--comes something rather new to PHP: Namespaces. [...] However, even the widest scope implementation will eventually start running into issues with naming conventions. This is where namespaces really shines.

The tutorial talks about the need for backwards compatibility and shows a simple namespace definition (as well as some sub-namespaces to define things even more). They show how to add some simple code - a function - and something more complex - a class - into an "Example" namespace.

0 comments voice your opinion now!
namespace tutorial


blog comments powered by Disqus

Similar Posts

DevShed: Developing SOAP Clients using PHP

Matthew Weier O'Phinney's Blog: Responding to Different Content Types in RESTful ZF Apps

DevShed: Developing an Extensible Template Processor in PHP 5 (Part 1)

ZendCasts.com: Writing Custom Zend Filters with HTMLPurifier

DevShed: Positioning Strings with the show_xy() Method in PDF Documents with PHP 5


Community Events





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


language interview bugfix podcast series community release deployment laravel voicesoftheelephpant list symfony opinion library introduction tips framework zendserver api developer

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