: 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.