B1.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 $d = 1; $u = 1; $m = 1; $s = 1; $t = o($d, $u, $m, $s); function o($d, $u, $m, $s){ $o = $d * 3600 * 24 + $u * 3600 + $m * 60 + $s; return $o; } echo "Het totaal aantal secondes bij $d dagen, $u uren, $m minuten en $s seconde: $t sec."; ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse