Instead of directly passing a value through a method, you can create anonymous functions.
$example = array(1,2,3);
(function () use ($example) { return $example[0] -1; })();
Separators () are used as BODMAS in mathematics, where (4 * 2) + 2 will be 10. Tell the compiler that you want to set the closure before executing it.
The long version will be
$closure = function () { ....
$closure();
This works with class instances and other options, for example:
(new Object)->method();
( ) , ,