首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > PHP日历类

PHP日历类

  • 资源大小:9.83 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: php 日历

资 源 简 介

A Calendar Object for a given month and year. The calendar Class takes a date string (eg: "December, 2009"), and creates an array of weeks and days for that month. This allows you to generate your own calendars in HTML or other markup. There is also other useful properties and methods such as getting locale specific day names, etc. Example Usage Get a array representation of the calendar for a given month ``` $cal = new Calendar(); // defaults to current month $days = $cal->getCalenderMonthDays(); var_dump($days); // array of weeks and days ``` Get an array representation of days in particular week ``` $cal = new Calendar("1/1/2009"); // for first month of 2009 $days = $cal->getCalenderWeekDays(3); // week 3 var_dump($days); // array of days for week 3 ``` Print a HTML Month calendar ``` $cal = new Calendar("now"); // for this month $html = $cal->getMonthHTML(); e

文 件 列 表

calendar
.project
.svn
calendar.class.php
examples
VIP VIP
0.218606s