[url]http://www.w3schools.com/PHP/php_date.asp
[CODE]PHP Date() – Adding a Timestamp
The optional timestamp parameter in the date() function specifies a timestamp. If you do not specify a timestamp, the current date and time will be used.
The mktime() function returns the Unix timestamp for a date.
The Unix timestamp contains the number of seconds between the Unix Epoch (January 1 1970 00:00:00 GMT) and the time specified.
Syntax for mktime()
mktime(hour,minute,second,month,day,year,is_dst)
To go one day in the future we simply add one to the day argument of mktime():
<?php
$tomorrow = mktime(0,0,0,date(“m”),date(“d”)+1,date(“Y”));
echo “Tomorrow is “.date(“Y/m/d”, $tomorrow);
?>
The output of the code above could be something like this:
Tomorrow is 2009/05/12
I dont understand the output .
let me analyse it
we have print of date(“Y/m/d”, $tomorrow);
“Y/m/d” –>gives 2009/05/12.
Now there is another part i.e $tomorrow …..[B][COLOR=”Blue”]where is the print for $tomorrow? and if its not for printing then whats the role of of this $tomorrow here ? i am exactly stuck here .