l105/klas 5/P2/phpserver/H7/7.2.php

<!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 $fahrenheit = 100; $celsius = omzetten($fahrenheit); echo("$fahrenheit graden fahrenheit is gelijk aan $celsius graden celsius."); function omzetten ($fahrenheit){ $celsius = ($fahrenheit-32)/1.8; return $celsius; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse