<?php $factorial_number = 5; $fact = 1; for($f=1;$k<=$factorial_number ;++$f) { $fact = $fact*$f; } echo "Factorial of $factorial_number is ".$fact; ?>
<?php $factorial_number = 5; $fact = 1; for($f=1;$k<=$factorial_number ;++$f) { $fact = $fact*$f; } echo "Factorial of $factorial_number is ".$fact; ?>