Currying was possible in php 5.6. But in php 7.0 it is now possible to invoke a curryied function with a one liner.
<?php
// A curried function
function add($a) {
return function($b) use ($a) {
return $a + $b;
};
}
// Invoking a curried function in PHP 7
$result = add(10)(15);
var_dump($result); // int 25
// Invoking a curried function in PHP 5.6
$add10 = add(10);
$result = $add10(15);
var_dump($result); // int 25
?>