Answer Posted / koushikgraj
<?php
function get_factorial_value($val)
{
$fact=1;
for($i=$val;$i>=1;$i--)
$fact=$fact*$i;
return $fact;
}
get_factorial_value(6);
?>
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is encapsulation in php?
How do you end a function in python?
How are variables declared in php?
How send email in php?
What percentage of websites use php?
What is composer used for?
What is a query in php?
How to calculate the length of a string?
What is an object in php?
Explain Type hinting in PHP?
What are hooks in php?
What is PECL?
How to stop the execution of php script?
What is the difference between htmlentities and htmlspecialchars in php?
Can we extend final class in php?