EasyPHPScripts.com      Free Open Source PHP Scripts and Code Snippet Library

 +Menu
+   Site News
+   Main Pages
+   Other Downloads
 +PHP
+ Arrays (9)
+ Directory And Files (7)
+ Image (3)
+ LDAP (3)
+ MySQL (11)
+ Other (11)
+ Regular Expressions (3)
+ String Manipulation (13)
+ Time and Date (6)
+ Date Format
+ Hours to Minutes
+ Minutes to Hours
+ Past Present Future
+ String to Date
+ Today
 +Snippet Options
+   Printer Friendly
 +Library Options
+   View Other Library
 +General Options
+   Log in
Description for Snippet: Time and Date / Past Present Future
  Dates combining date and mktime
 
Syntax for: Past Present Future

1:
2:
3:
4:
5:
<?php
$tomorrow  
mktime (0,0,0,date("m")  ,date("d"1,date("Y"));
$lastmonth mktime (0,0,0,date("m")-1,date("d"),  date("Y"));
$nextyear  mktime (0,0,0,date("m"),  date("d"),  date("Y"1);
?>
 


 
Powered by: PHP & centOS