Beispiel #1
0
                  <div class="col-md-3">
                      <span class="semi-bold">Name</span>
                  </div>
                  <div class="col-md-9">
                      <span>: <?php 
    echo $r['person_nm'];
    ?>
</span>
                  </div>
                  <br/><br/>
                  <div class="col-md-3">
                      <span class="semi-bold">Division</span>
                  </div>
                  <div class="col-md-9">
                      <span>: <?php 
    echo GetDivision($r['org_id']);
    ?>
</span>
                  </div>
                  <br/><br/>
                  <div class="col-md-3">
                      <span class="semi-bold">Section</span>
                  </div>
                  <div class="col-md-9">
                      <span>: <?php 
    echo $r['org_nm'];
    ?>
</span>
                  </div>
                  <br/><br/>
                  <div class="col-md-3">
// Возможно 4 обращения
$Diff = GetDifference($Numb_1, $Numb_2);
echo "{$Numb_1} - {$Numb_2} = {$Diff}\n";
$Numb_1 = 22;
$Numb_2 = 6;
$Mult;
// Возможно 5 обращений
GetMult_incorrect_return();
echo "incorrect return Mult result = {$Mult}\n";
// Все еще 5
GetMult_global_return($Numb_1, $Numb_2);
echo "{$Numb_1} * {$Numb_2} = {$Mult}\n";
$Numb_1 = 15;
$Numb_2 = 2;
// Возможно 6 обращений
GetDivision($Numb_1, $Numb_2, $Div);
echo "{$Numb_1} / {$Numb_2} = {$Div}\n";
$Numb_1 = 2;
$Numb_2 = 8;
$Involution;
// Возможно 7 обращений
GetInvolution_use_BuiltIn_function();
echo "Not my func: " . $Numb_1 . "^" . $Numb_2 . " = {$Involution}\n";
$Numb_1 = 5;
$Numb_2 = 4;
// Возможно 7 обращений
$Involution = My_GetInvolution($Numb_1, $Numb_2);
echo "My func: " . $Numb_1 . "^" . $Numb_2 . " = {$Involution}\n";
$n = 3;
$Result = Factorial();
echo "Factorial(" . $n . ") = {$Result}\n";