Created
August 25, 2014 19:26
-
-
Save alxfv/f1b68b56c3867b73f104 to your computer and use it in GitHub Desktop.
Print 0-10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function solve($n) { | |
if ($n > 0) { | |
echo solve($n - 1); | |
} | |
return $n; | |
} | |
solve(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment