LAMPlights Personal anecdotes from my experiences using the LAMP stack

14Nov/090

Using SPL Exceptions

Brandon Savage has a great series of posts on using exceptions in PHP.  Unfortunately, he does not introduce the SPL exceptions into the discussion.

25Oct/094

Hidden features with spl_autoload() and namespaces

The namespace operator in PHP 5.3 is a backslash (\). One of the criticisms of this operator is that the code starts to look like directory paths on Windows. The added side benefit of this is that spl_autoload() knows how to autoload classes that use a namespace style that matches the directory layout.