Webbserverprogrammering 1

Show sourcecode

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

webbsrvprg/exercises/lekt1/

upg1.php
upg2.php
upg3.php
upg4.php
upg5.php
upg6.php
upg7.php

upg5.php

13 lines ASCII Windows (CRLF)
<?php

$value 
1;
$array = [];
for (
$i0$i 10$i++){
    
$array[$i]=$value;
    
$value *= 2;

}
$sum array_sum($array);
$medel $sum /count($array);
echo 
$sum.' '.$medel;
?>