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

Gergely Hodicska's Blog:
What's new in PHP 5.3 - part 1: namespaces
Nov 14, 2007 @ 18:50:00

Gergely Hodicska has started a mini-series of posts centering about what's going to be coming in the next major release of PHP, version 5.3. The first article has been posted today focusing on one of the more popular topics - namespaces.

In my previous post I mentioned that PHP 5.3 will be released in early 2008 so I think it's just in time to talk about the features of this version. [...] The big gun features are namespaces, late static binding and mysqlnd, but there are other interesting improvements, for example __callStatic, dynamic static calls. In this part of this series we are going to analyze namespaces in detail.

Included in the post are a "before" and "after" example of namspacing in a PHP application, code examples of namespaces in action, simple porting of current PHP 5.2 applications up to 5.3 and working with __autoload and Reflection.

tagged: namespace php5 callstatic latestaticbinding tutorial namespace php5 callstatic latestaticbinding tutorial

Link:


Trending Topics: