Voting

: max(three, zero)?
(Example: nine)

The Note You're Voting On

Josh J
18 years ago
In regards to the recursion issue by info at adaniels dot nl

Anon function recursion by referencing the function variable in the correct scope.
<?php
$fn2
= create_function('$a', 'echo $a; if ($a < 10) call_user_func($GLOBALS["fn2"], ++$a);');
$fn2(1);
?>

<< Back to user notes page

To Top