hip1/7.4.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 function convert ($temp, $direction=0){ if($direction){ return ($temp-32)*5/9; } else{ return ($temp*9/5)+32; } } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse