functional php : make code examples clearer