摘要: PHP判断检验身份证号码检查类,用到PHP中的array数组、ereg()函数等,实现有将英文字母转为数字、转为大写等操作,使用时可直接复制本代码保存为IDcard.class.php文件。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 阅读全文
posted @ 2016-09-28 10:02 淘代码 阅读(285) 评论(0) 推荐(0) 编辑
摘要: <?php //创建一个日期类 class Calendar { var $startDay=0; var $startMonth=1; var $dayNames=array("<font color='red' face='courier new'>Sunday</font>", "<font  阅读全文
posted @ 2016-09-28 10:00 淘代码 阅读(214) 评论(0) 推荐(0) 编辑
摘要: <?php /**date 2015-04-11 * PHP获取上周、本周、上月、本月、本季度、上季度时间方法大全 **/ echo date("Ymd",strtotime("now")), "\n"; echo date("Ymd",strtotime("-1 week Monday")), " 阅读全文
posted @ 2016-09-28 09:55 淘代码 阅读(212) 评论(0) 推荐(0) 编辑