1. The time format for printing out the previous day in PHP is 2006-5-10 22:21:21 (2 minutes)
<?php
Date_default_timezone_set (' Asia/shanghai 'echo date_default_timezone_get (); Echo "<br/>"echo @Date("Y-m-d h:i:s",strtotime("1 day");
Echo (Strtotime ("Now")); Current time stamp
Echo (Strtotime ("+5 Hours", Strtotime ("1970-01-01")); 5 hours from 1970-01-01 after the timestamp echo (Strtotime ("3 October 2005"));//October 3, 2005 timestamp echo (Strtotime ("+5 hours")); Time stamp of the current time plus 5 hour echo (Strtotime ("+1 Week")); Timestamp of the current time plus one week Echo (Strtotime ("+1 Week 3 days 7 hours 5 Seconds")); Current time plus 3 days a week 7 hours 5 seconds timestamp echo (Strtotime ("Next Monday")); Time stamp of the current time to next Monday 0 o'clock Echo (strtotime ("Last Sunday")); Time stamp of the early Sunday to the current time?>
2.
PHP face Test