PHP Program - Write a function to calculate the factorial of a number (a non-negative integer). The function accepts the number as an argument.
1. PHP Functions Coding Question
Write a function to calculate the factorial of a number (a non-negative integer). The function accepts the number as an argument.
Case 1: If argument is -3. Output: Invalid input
Case 2: If argument is 5. Output: 5x4x3x2x1=120