Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
amprog_05_ex1 [2016-10-14 09:52]
Anders Mosshäll created
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 34: Line 34:
  
 $x = 0; $x = 0;
-while ($x < count($tal)){ // Finns talet reda i arrayen? +while ($x < count($tal)){ 
-  echo $tal[$x].'<br />';+  echo $tal[$x].'<br>';
   $x++;   $x++;
 } }