Verifying time in php - Page 2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Re: Verifying time in php

On 14-10-2012 11:45, houghi wrote:
Quoted text here. Click to load it

whats wrong with this code:
$t=sprintf("%02d:%02d:%02d", $h, $m, $s);
print $x."\n";
print date("l dS  F Y H:i:s ",$x)."\n";

You only need some more validation on the 'strtotime' and 'date'

Site Timeline