In the following PHP program factorial of number 5 is calculated. A recursive function calls itself within the function. What is recursion? When a function calls itself is termed as recursion. Like other languages PHP also supports Recursion. Like using recursion, recursion with user input, without recursion, without recursion with user input. We will learn further using different methods to calculate factorial of the given number using PHP code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2023
Categories |