l103/7.2.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
// error_reporting(E_ERROR | E_PARSE;
$celsius = 100;
$aantalF = omrekenen($celsius);
echo $celsius." graden celsius is gelijk aan".$aantalF."graden fahrenheit";
function omrekenen($celsius){
$fahr = ($celsius - 32) / 1.8;
return $fahr;
}
?>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse