失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > PHP自动生成月历代码共享

PHP自动生成月历代码共享

时间:2020-01-15 09:36:27

相关推荐

PHP自动生成月历代码共享

php教程|php手册

PHP,自动生成,月历,代码,共享,print,.strftime,mktime,YYYY,Sun,Mon,Tue,We

php教程-php手册

<?php /* Function Written by Nelson Neoh @3/. For those who wants to utilize this code, please do not remove this remark. If you have done any enhancement to this code, please post the copy at http://www.dev- PHP board. Thank you. Function usage: calendar(Month,Year) */ function calendar($MM,$YYYY){ if($MM=="") $MM = date("m"); if($YYYY=="") $YYYY = date("Y"); if(checkdate($MM,1,$YYYY)){ $stringDate = strftime("%d %b %Y",mktime (0,0,0,$MM,1,$YYYY)); $days = strftime("%d",mktime (0,0,0,$MM+1,0,$YYYY)); $firstDay = strftime("%w",mktime (0,0,0,$MM,1,$YYYY)); $lastDay = strftime("%w",mktime (0,0,0,$MM,$days,$YYYY)); $printDays = $days; $preMonth = strftime("%m",mktime (0,0,0,$MM-1,1,$YYYY)); $preYear = strftime("%Y",mktime (0,0,0,$MM-1,1,$YYYY)); $nextMonth = strftime("%m",mktime (0,0,0,$MM+1,1,$YYYY)); $nextYear = strftime("%Y",mktime (0,0,0,$MM+1,1,$YYYY)); print(""); print("P

“); print(“

源码怎么安装成app,vscode文件排序,ubuntu怎么加qt,tomcat 日志 深入,sqlite库怎么下载,jiasale wordpress 插件,前端 框架选哪个更好,数据爬虫工作内容,安装php gd,seo与竞价的区别,宽带网站源码,网页flv文件播放不了怎么办,discuz模板大全,搜索结果页面html模板,jsp毕业课题管理系统,isd1700程序lzw

“.strftime(“%b %Y”,mktime (0,0,0,$MM,1,$YYYY)).”

“); print(“

asp源码下载了怎么用,ubuntu更新usb端口,nodejs并发爬虫实战,php year函数,灰色网站seolzw

N

“); print(“”); print(“

同宿舍查询源码,vscode进入编辑状态,ubuntu 动画软件,tomcat只能本机访问,淘宝非法爬虫,php 时间戳获取年份,惠州seo网络营销专业,餐厅 微网站源码,word爱情模板lzw

SunMonTueWedThuFriSat

“); $currentDays = 1; for($a=1;$a$lastDay && $currentDays ==1 && ($diffDays1)){ for($x=$lastDay;$x>=0;$x–){ $printDays = $days-$x; print(“$printDays”); } for($z=1;$z<$firstDay-$lastDay;$z++){ print(" "); } for($y=$firstDay;$y<7;$y++){ print("$currentDays"); $currentDays++; } } elseif($firstDay!=0 && $currentDays==1){ for($z=1;$z<=$firstDay;$z++){ print(" "); } for($y=$firstDay;$y<7;$y++){ print("$currentDays"); $currentDays++; } } else { for($u=1;$u<=7 && $currentDays

如果觉得《PHP自动生成月历代码共享》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。