Header menu

_________________________________________________________________________________

Tuesday, 20 August 2013

Recursion in php

<?php

function recursion($int){
    if($int>0){
        echo $int."</br>";
        recursion($int-1);
        echo $int."</br>"; /*values from stack*/
        }
    }
   
recursion(5);

?>

No comments:

Post a Comment