Recursive Closure

../_images/recursive_closure.png

To make a recursive closure, the closure must be both stored in a variable and passed as a use parameter to the same factorial.

It also works for arrow functions, although there is no the use, but the variable must be defined first, so it can be used in context later.

See Also

PHP Features