x100/B2.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>B2</title> </head> <body> <?php $aantalSec = berekenen(3,20,1,1); echo $aantalSec; function berekenen($minuten, $seconden, $dagen=0, $uren=0){ $tijd = $dagen * 3600 * 24 + $uren * 3600 + $minuten * 60 + $seconden; return "$tijd seconden"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse