l105/klas 5/P2/phpserver/H7/7.6.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 $prijs = ticketprijs(2); echo("De prijs is $prijs euro."); function ticketprijs ($volwassenen, $kinderen=0){ $prijs = $volwassenen*40 + $kinderen*15; return $prijs; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse