<?php
function multiplyTwoValues($value1,$value2){
return $value1 * $value2);
}
$calculated_number = 7;
echo "<h1>Loop Example</h1>";
echo "<h2>$calculated_number Times Table</h2>";
for($i=1;$i<=12;$i++){
$sum = multiplyTwoValues($calculated_number,$i);
echo "$calculated_number * $i = $sum <br />";
}
?>