Description:
The mktime() function returns the unix time stamp for a date.
The unix timestamp contains the no of seconds b\w the unix epoch (d/m/y)and the time specified.
Sample Code:
<?php
$tomorrow =mktime(0,0,0,date("m"),date("d")+1,date("y"));
echo "Tomorrow is ".date("y/m/d",$tomorrow);
?>
Output:
The mktime() function returns the unix time stamp for a date.
The unix timestamp contains the no of seconds b\w the unix epoch (d/m/y)and the time specified.
Sample Code:
<?php
$tomorrow =mktime(0,0,0,date("m"),date("d")+1,date("y"));
echo "Tomorrow is ".date("y/m/d",$tomorrow);
?>
Output:
No comments:
Post a Comment