Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

webbsrvprg/ovningar/

form/
funk/
gr/
ovn_funk1.php
ovn_funk2.php
ovn_funk3.php
ovn_funk4.php
ovn_funk5.php
ovn_funk6.php
ovn_funk7.php
ovn_gr1.php
ovn_gr2.php
ovn_gr3a.php
ovn_gr3b.php
ovn_gr4.php
ovn_gr5.php
ovn_gr6.php
ovn_gr7.php

ovn_funk6.php

22 lines ASCII Windows (CRLF)
<!DOCTYPE html>
<html>
<body>

<?php
$array 
= [1122];
var_dump($array);
function 
skriv(&$array){
  
$len count($array);
  for (
$i=0$i $len$i++) { 
    if (
$array[$i]%== 0){
      
$array[$i] = 0;
    }
  }
  
var_dump($array);
}
skriv($array)
 
?> 

</body>
</html>