From de6fb719d5bc241e769d8df490ee93a32e839591 Mon Sep 17 00:00:00 2001 From: Goran Rakic Date: Fri, 20 Jul 2012 02:40:04 +0300 Subject: [PATCH] Copy new paragraph by @jeremeamia from main page to content page --- pages/Functional-Programming.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/Functional-Programming.md b/pages/Functional-Programming.md index 99d9660..4ff3ae0 100644 --- a/pages/Functional-Programming.md +++ b/pages/Functional-Programming.md @@ -14,6 +14,9 @@ on iteration. New anonymous functions (with support for closures) are present since PHP 5.3 (2009). +PHP 5.4 added the ability to bind closures to an object's scope and also improved support for callables such that they +can be used interchangeably with anonymous functions in almost all cases. + The most common usage of higher-order functions is when implementing a strategy pattern. Built-in `array_filter` function asks both for the input array (data) and a function (a strategy or a callback) used as a filter function on each array item.