Re:Ask HN: PHP Tricks and Best Practices?
by neovive on Wednesday October 29, 2008 @08:22PM
(#348244)
For some more SPL examples, read through the source of the KohanaPHP framework (http://www.kohanaphp.com). The framework was originally a fork of CodeIgniter, but has evolved into a completely new and powerful framework -- completely written in PHP5. The framework source is very well written and has some excellent examples of using SPL and OOP along with some nice helpers and libraries.
http://us.php.net/spl
http://www.php.net/~helly/php/ext/spl/
The documentation on php.net is pretty lacking. Heres are some tutorials and examples:
http://www.phpro.org/tutorials/Introduction-to-SPL.html
http://devzone.zend.com/article/2565-The-Standard-PHP-Librar...