<?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 />";
    }

?>

Loop Example

7 Times Table

7 * 1 = 7
7 * 2 = 14
7 * 3 = 21
7 * 4 = 28
7 * 5 = 35
7 * 6 = 42
7 * 7 = 49
7 * 8 = 56
7 * 9 = 63
7 * 10 = 70
7 * 11 = 77
7 * 12 = 84