Menu
Hi All,
Can someone please explain to me what mktime(0,0,0) in the following code does? Does it meant today at 00:00:00? I am sorry it might be an easy thing but I am a php beginner and I am desperately trying to understand this.
[code=php]<?php
$today = mktime(0, 0, 0);
if(mktime(0, 0, 0, $_POST[‘month’], $_POST[‘day’], $_POST[‘year’]) >= $today)
{
// correct date
}
else
{
// invalid date
}
?>
thanks