Here's something that really shows how PHP can shine, don't wanna start a war but it is so much cooler than the RUBY example. I can't help taking up challenges, and I'm not a big fan of putting a lot of code into one line but here goes... Unlike the ruby example I will not be installing any additional libraries nor any framework but just use PHP 5.2.x core functionality.