News for hackers. Stuff that matters.
Re:Ask HN: PHP Tricks and Best Practices? by agotterer on Wednesday October 29, 2008 @02:47PM (#347812)
You should learn how SPL (standard PHP library) works. Most PHP developers don't even know it exists! In my opinion its one of the most powerful parts of PHP if you can learn to use it correctly.

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...

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.
Re:Ask HN: PHP Tricks and Best Practices? by jamongkad on Wednesday October 29, 2008 @11:16PM (#348374)
Whoa thank you! this PHP developer included.
Re:Ask HN: PHP Tricks and Best Practices? by DanHulton on Wednesday October 29, 2008 @03:08PM (#347842)
Holy crap, these are AWESOME.