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
Next revision Both sides next revision
amprog_05_ex1 [2016-10-17 10:49]
Anders Mosshäll
amprog_05_ex1 [2017-09-01 14:54]
127.0.0.1 external edit
Line 17: Line 17:
          
     $x = 0;     $x = 0;
-    while ($x < count($tal)){ // Finns talet reda i arrayen?  +    while ($x < count($tal)){ // Finns talet redan i arrayen?  
       if ($tal[$x] == $slump){       if ($tal[$x] == $slump){
         $slumpaom = true;         $slumpaom = true;
Line 35: Line 35:
 $x = 0; $x = 0;
 while ($x < count($tal)){ while ($x < count($tal)){
-  echo $tal[$x].'<br />';+  echo $tal[$x].'<br>';
   $x++;   $x++;
 } }