?php /* * PHP简单日历实例 * 作者: 多菜鸟 * 邮箱: kingerq AT msn DOT com * 来源: http://blog.csdn.net/kingerq/ * 创建时间: 2008-01-03 **/ $date = preg_match(//d{4}/-/d{2}/-/d{2}/, $_GET[YMD]) ? $_GET[YMD] : date( Y-m-d ); $thisYear = date(
/*
* php简单日历实例
* 作者: 多菜鸟
* 邮箱: kingerq at msn dot com
* 来源: http://blog.csdn.net/kingerq/
* 创建时间: 2008-01-03
**/
$date = preg_match("//d{4}/-/d{2}/-/d{2}/", $_get["ymd"]) ? $_get["ymd"] : date( "y-m-d" );
$thisyear = date( "y", strtotime( $date) );
$thismonth = date( "m", strtotime( $date) );
$firstday = date( "w", strtotime( $thisyear."-".$thismonth."-01" ) );
$monthnum = date( "t", strtotime( $date) );
?>
|
SUN |
MON | TUE | WED | THU | FRI | SAT |
> >=$i ?> |
||||||
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号