Show sourcecode
The following files exists in this folder. Click to view.
övning1.php
övning2.php
övning3.php
övning4.php
övning5.php
övningar.php
övningfunk1.php
övningfunk2.php
övningfunk3.php
övningfunk4.php
övningfunk5.php
övningfunk6.php
övningtest.php
övningfunk3.php
33 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
$tal1 = 3;
$tal2 = 5;
$tal3 = 8;
function störstaTal($tal1, $tal2, $tal3) {
if ($tal1 > $tal2 && $tal1 > $tal3) {
return $tal1;
}
if ($tal2 > $tal1 && $tal2 > $tal3) {
return $tal2;
}
return $tal3;
}
$största = störstaTal($tal1, $tal2, $tal3);
echo $största;
?>
</body>
</html>