Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dvprog_05 [2017-09-08 14:36]
Daniel Viström
dvprog_05 [2022-07-18 13:20] (current)
Line 1: Line 1:
-====== Genomgång - Loopar ======+====== Genomgång - Loopar ======
  
 <php> <php>
Line 14: Line 14:
 <code php> <code php>
 <?php <?php
-include('head.php');+include 'head.php';
  
 $i = 1;                                // Startvärde $i = 1;                                // Startvärde
Line 22: Line 22:
 } }
  
-include('foot.php'); +include 'foot.php';
-?>+
 </code> </code>
  
Line 53: Line 52:
 <code php> <code php>
 <?php <?php
-include('head.php');+include 'head.php';
  
 $summa = 0;               // Startvärde för summan $summa = 0;               // Startvärde för summan
Line 63: Line 62:
 echo '<br>Summan av var tredje tal under 100 blir: ' . $summa . '<br>'; echo '<br>Summan av var tredje tal under 100 blir: ' . $summa . '<br>';
  
-include('foot.php'); +include 'foot.php';
-?>+
 </code> </code>
  
Line 72: Line 70:
 <code php> <code php>
 <?php <?php
-include('head.php');+include 'head.php';
  
 $summa = 0;                          // Startvärde $summa = 0;                          // Startvärde
Line 86: Line 84:
 echo 'Summan är: ' . $summa . '<br>'; echo 'Summan är: ' . $summa . '<br>';
  
-include('foot.php'); +include 'foot.php';
-?>+
 </code> </code>