Function or_chain
Returns a function that invokes the provided variadic functions one after the other until one of the functions returns a non-null value. The return function will call each passed function with any arguments it is provided.
$a = function ($x, $y) { return null; }; $b = function ($x, $y) { return $x + $y; }; $fn = \Aws\or_chain($a, $b); echo $fn(1, 2); // 3
Return value summary
callable
|
callable |