News Feed
Sections




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

SitePoint PHP Blog:
How to Use PHP Namespaces, Part 1 The Basics
July 13, 2009 @ 11:07:50

Now that PHP 5.3 has been released and is ready for production use, it's time to familiarize yourself with some of the new features that come with it. In this new tutorial from SitePoint they look at one of the more controversial additions - namespaces.

Namespaces are one of the most significant changes in PHP 5.3. They will be familiar to C# and Java developers, and they are likely to change the structure of PHP applications for the better. [...] Name collision problems can be solved with namespaces. PHP constants, classes, and functions can be grouped into namespaced libraries.

Thy look at namespace definition and some example code showing them in use - echoing out the results of a call to a constant, a function and a method.

0 comments voice your opinion now!
introduction namespace tutorial


blog comments powered by Disqus

Similar Posts

Alan Knowles' Blog: Getting Started with HTML_FlexyFramework, DataObjects and HTML_Template_Flexy

Stefan Mischook's Blog: Building Objects Video (Parts 1, 2 & 3)

NETTUTS.com: Building a 5 Star Rating System with jQuery, AJAX and PHP

Padraic Brady's Blog: Writing A Simple Twitter Client Using the PHP Zend Framework's OAuth Library

IBM developerWorks: Build a web-based notification tool with XMPP


Community Events





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


symfony list threedevsandamaybe opinion framework release interview version configure introduction api laravel series voicesoftheelephpant conference podcast language community unittest composer

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