l105/klas 5/P2/phpserver/H7/7.3.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 $celsius = 37.8; $fahrenheit = omzetten($celsius); echo("$celsius graden fahrenheit is gelijk aan $fahrenheit graden celsius."); function omzetten ($celsius){ $fahrenheit = ($celsius * (9/5))+ 32; return $fahrenheit; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse