Does this even make PHP? -8

Source: Internet
Author: User

Some of the time functions of PHP, this section after the end, you can go to php more advanced content ...

<?php Date_default_timezone_set ("Asia/shanghai"); EchoThe timestamp returned by the Mktime function: ".Mktime()." <p> "; Echo"The current date is:".Date("Y-m-d",Mktime())." <p> "; Echo"The current time is:".Date("H:i:s",Mktime())." <p> "; $nextWeek= Time() + (7 * 24 * 60 * 60); Echo' Now: '.Date(' y-m-d '). " <p> "; Echo' Next Week: '.Date(' y-m-d ',$nextWeek)." <p> "; Echo"Date_atom =".Date(Date_atom); Echo"<p>date_cookie =".Date(Date_cookie). " <p> "; $arr=getdate(); Echo $arr[year]. " -".$arr[Mon]. " -".$arr[Mday]. "". " <p> "; $year= 2008; $month= 2; $day 1= 29; $day 2= 30; Var_dump(checkdate($month,$day 1,$year)); Echo"<br>"; Var_dump(checkdate($month,$day 2,$year)); Echo"<br>"; Echo Date("L y-m-d h:i:s T"); Echo"<br>"; setlocale(Lc_all, "CHS"); Echo"Chinese simple physique style:".strftime("Today is%a"); Echo"<br>"; Echo Strtotime("Now"), "\ n"; Echo"Output time:".Date("Y-m-d h:i:s",Strtotime("Now"), "<br>"; ?>

Does this even make PHP? -8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.