What is the number of months for PHP from Monday to Sunday?

Source: Internet
Author: User
: This article mainly introduces how many months does PHP last from Monday to Sunday ?, If you are interested in the PHP Tutorial, refer.
Header ("content-type: text/html; charset = utf-8"); date_default_timezone_set ('prc'); functiongetWeek ($ unixTime = '') {$ unixTime = is_numeric ($ unixTime )? $ UnixTime: time (); $ weekarray = array ('day', 'yi', '2', '3', '4', '5', '6 ', '7'); return "week ". $ weekarray [date ('W', $ unixTime)] ;}$ var = getWeek (); switch ($ var) {case 'Sunday': $ var = time (); $ var2 = $ var-(84600*6); echo "this Monday is ". date ("Y-m-d", $ var2 ). "No."; break; case 'Monday': $ var = time (); $ var2 = $ var; echo "this Monday is ". date ("Y-m-d", $ var2 ). "; break; case 'Tuesday': $ var = time (); $ var2 = $ var-84600; echo" this Monday is ". date ("Y-m-d", $ var2 ). "No."; break; case 'wedned': $ var = time (); $ var2 = $ var-(84600*2); echo "this Monday is ". date ("Y-m-d", $ var2 ). "No."; break; case 'thurs': $ var = time (); $ var2 = $ var-(84600*3); echo "this Monday is ". date ("Y-m-d", $ var2 ). "No."; break; case 'Friday': $ var = time (); $ var2 = $ var-(84600*4); echo "this Monday is ". date ("Y-m-d", $ var2 ). "No."; break; case 'Saturday': $ var = time (); $ var2 = $ var-(84600*5); echo "this Monday is ". date ("Y-m-d", $ var2 ). "No."; break ;}

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above introduces how many months does PHP last from Monday to Sunday ?, Including some content, hope to be helpful to friends who are interested in PHP tutorials.

    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.