123456/les.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 include('menu.html'); $leeftijd ="16"; $aantaltrainingen = 2; $c = contributie($leeftijd,1); echo "De contributie is $c"; function contributie($houOud, $trainingenperweek = 2){ $con = $houOud * 5 + $trainingenperweek * 50; return $con; } include('footer.html'); ?> </div> </body> </html>

Resultaat

Made by Thijs Aarnoudse