Hoofdstuk 7/7.2.7.5.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 $uren = 3; $minuten = 25; $seconden =7; $tijd= t($uren, $minuten, $seconden); function t($H,$M,$S){ $uur = $H/3600; $minuut = $M/60; $totaal = $uur + $minuut = $S; return $totaal; } echo "<div> De secondens van $uren uren, $minuten minuten en $seconden is in totaal $tijd secondens. <div/> "; ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse