Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2.  
  3. //======================================================================
  4. // PHP日期和时间表示
  5. //======================================================================
  6.  
  7. //----------------------------------------------------------------------
  8. // Mysql时间戳存储
  9. //----------------------------------------------------------------------
  10.  
  11. # INT 11
  12. # TIMESTAMP
  13.  
  14. # 今天凌晨的MySQL时间戳字符串
  15. echo date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("y")));
  16.  
  17. # INT11类型的时间戳字段
  18. mktime(0,0,0,date("m"),date("d"),date("y"));
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement