Webbserverprogrammering 1

Show sourcecode

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

webbsrvprg/exercises/grunder/

ovn_gr1.php
ovn_gr2.php
ovn_gr3.php
ovn_gr4.php
ovn_gr5.php
ovn_gr6.php
ovn_gr7.php

ovn_gr4.php

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

<?php


$celsius 
= -20;
$i 0;
$celarray = array();
$faharray = array();

while(
$celsius <= 40) {
 
$celarray[] = $celsius;
    
$faharray[] = (($celsius*9/5)+34);

    
$celsius += 10;
    
}
echo 
"<pre>" print_r($celarraytrue) . "</pre>";
echo 
"<pre>" print_r($faharraytrue) . "</pre>";



?> 

</body>
</html>