Webbserverprogrammering 1

Show sourcecode

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

webbsrvprg/exercises/ovning2/

index.html
ovn_funk1.php
ovn_funk2.php
ovn_funk3.php
ovn_funk4.php
ovn_funk5.php
ovn_funk6.php
ovn_funk7.php
ovn_funk8.php
ovn_funk9.php

ovn_funk4.php

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

<?php
function skriv(...$x){
    
$max max($x);
    if (
$max == "minsta"){
        echo 
min($x);
    }
    else{
        echo 
max($x);
    }
}
skriv(1,100,8"minsta");
?> 

</body>
</html>