php examples of functional programming concepts