What is a recursive function in PHP?

When a function call itself it is called recursive function.
Below is the example in which recursive function is used for factorial of a number.What is recursive function in php?

<?php  
function fatorial ($num)  
{  
    if($num < 1)   
    {  
        return 1;  
    }  
    else   
    {  
        return $num * fatorial($num - 1);  
    }  
}  
  
echo fatorial(6);  
?> 

What is recursive function in php?expoundsofttechsolution