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 the limitation of header() function in php?
Why php is also called as scripting language?
Which php framework is fastest?
What is class extend in php?
Which array function checks if the particular key exists in the array?
How many types of arrays are there in php?
What is php pathinfo?
What is csrf verification?
Does php have multiple inheritance?
Tell me how can we get the error when there is a problem to upload a file?
Why namespace is used in php?
Tell me how can we change the maximum size of the files to be uploaded?
How to pass variables and data from php to javascript?
What are the differences between php constants and variables?
What difference between require() and require_once()?