Elevate Your PHP Development with PHP 5.3's Powerful New Features
Apr 01, 2010, 22:02 (0 Talkback[s])
(Other stories by Jason Gilmore)
Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js
"By typical development conventions, PHP 5.3 only qualifies as a
"point release." However, the features packed into this new version
are easily the most significant PHP development enhancements since
PHP 5.0 was released in 2004. The powerful new PHP 5.3 features
include namespace support, lambda functions and closures, late
static binding, improved Windows support, and a host of syntactical
additions. This article provides all the information you need to
begin taking advantage of these PHP 5.3 goodies.
"The addition of namespaces is considered the most significant
addition of the PHP 5.3 release. Namespaces provide developers with
an effective means to organize code in a way that greatly
diminishes the possibility of naming collisions (notably classes,
functions, and constants) when integrating third-party code. Put
into practical terms, you can now safely create a library capable
of interacting with Amazon's A2S web service and namespace it using
a unique moniker such as A2S. However, because namespace
hierarchies are also supported, you probably should use a
convention that guarantees uniqueness, such as ComWjgilmoreA2s.
"Associating a file (say, a2s.php) to a namespace is easy; just
use the namespace keyword like this:"