Following the tutorial from Patkos Csaba on NetTuts+, http://net.tutsplus.com/tutorials/php/functional-programming-in-php/