Webbserverprogrammering 1

Show sourcecode

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

webbsrvprg/exercises/Funktioner/

index.php
ovn_funk1.php
ovn_funk2.php
ovn_funk3.php
ovn_funk4.php

ovn_funk3.php

21 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <?php

function storsta($tal1, $tal2, $tal3) {
    return 
max($tal1, $tal2, $tal3);
}

$storstaTal = storsta(10, 25, 15);

echo 
"$storstaTal Är störst av heltalen"; 

?>  
</body>
</html>