PHP Implementation Calendar case

Source: Internet
Author: User
This article mainly introduces how to write a calendar of PHP a small case, interested in a friend's reference, I hope to be helpful to everyone.

The code is as follows:

<?php//Modify page encoding header ("content-type:text/html;    Charset=utf-8 ");    If the year is not passed, get the current system year $year =!isset ($_get[' y '))? $_get[' y ']:d ate (' Y ');    If there is no incoming month, obtain the current system month $month =$_get[' m ']?$_get[' m ']:d ate (' m ');    Gets how many days the current month $days =date (' t ', Strtotime ("{$year}-{$month}-1"));    The current 1th number is the day of the Week $week =date (' W ', Strtotime ("{$year}-{$month}-1"));        Output header echo "<center>";        echo "

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.