1、这是一个简单的 php 例子
2、这个例子的功能是,实现一个简单的日历显示功能。
3、该函数的作用是:输入指定的 年、月、日时,输出当前月的日历,并在输入的指定 日期 中,突出显示。
具体的代码实现如下:
1 <?php 2 header("Content-Type: text/html;charset=utf-8"); 3 4 date_default_timezone_set("PRC"); 5 6 /* 7 * 日历函数 8 */ 9 10 /** 11 * 输出当前年、月的日历 12 * 2015年6月13日 13 * @author gaoqing 14 * @param int $year 年 15 * @param int $month 月 16 * @param int $day 当前日期 17 * @return void 空 18 */ 19 function calendar($year, $month, $day){ 20 /*