- time: documentation ( source)
- test2: documentation ( source)
<?php
function test ($x, $y) {
if (($x + $y) > 0) {
test($x, $y - 1);
return;
}
return $y;
}
function test2 ($x) {
if ($x < time()) {
test2($x + 1);
return;
}
return $x;
}
echo test2(test(111, 110));