Beste,
Hoe kan ik met PhP het volgende doen. 1:30 = 78000 millisecondes.
Hoe kan ik met PhP het volgende doen. 1:30 = 78000 millisecondes.
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]1:30 = 78000 millisecondes.[/COLOR]
?> 
Heel grappig. Maar hoe kan ik 1:30 laten berekenen, hoeveel secondes dat is?Daiman schreef:je hebt hem niet geëindigd met een puntkommalennard je code is alsnog fout
maar zonder werkt ie ook 
[COLOR= #0000BB]<?php
$tijd[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]2:30[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$part[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]:[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$tijd[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$part[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]] *[/COLOR] [COLOR= #0000BB]60[/COLOR] [COLOR= #007700]+[/COLOR] [COLOR= #0000BB]$part[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]];[/COLOR]
?>