I first started building PHP web applications in 1997 when PHP was in version 3. Templating systems didn't exist then; object-oriented design was not a viable option; and the PHP code was downright ugly. Today, I work with PHP 5, which has a vastly improved object-oriented programming environment, mature templating systems, hundreds of useful PEAR packages, and powerful open source databases. With these advances, it's no longer acceptable to write PHP code that looks like linguini that's been thrown against the wall.
The article continues at