<?php
$uren = 6;
$minuten = 12;
$secondes = 18;
$aantalsecondes = berekening($uren, $minuten, $secondes);
function berekening($uren, $minuten, $secondes){
$aantalsecondes = ($uren * 3600) + ($minuten * 60) + $secondes;
return $aantalsecondes;
}
echo("Het aantal secondes is $aantalsecondes.")
?>
Made by Thijs Aarnoudse