News Feed
Jobs Feed
Sections




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

Ariz Jacinto's Blog: Compiling PHP with MSSQL Server's Native ODBC Driver for Linux as a PDO Driver

MaltBlue.com: Zend Form Mastery with Zend_Config - Part 3, Standard Form & Element Options

Zend Developer Zone: Getting Started with OpenID and PHP

PHPBuilder.com: A Sanity-saving Debugging Solution for Your PHP Development

C7Y: Practical Uses for the PHP Tokenizer


Community Events











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


community introduction testing phpunit conference language code series release framework unittest opinion development example podcast functional zendframework2 application interview tool

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