摘要: PHP中对日期进行处理常用的几个函数如下: date(format,timestamp): 把时间戳格式化为更易读的日期和时间 format : 必需,规定输出日期字符串的格式 timestamp : 可选,规定整数的 Unix 时间戳。默认是当前的本地时间 time() 返回值是格式化后的时间字符 阅读全文
posted @ 2019-06-29 15:03 一半人生 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 1 Email地址:^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$ 2 域名:[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(/.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+/.? 3 InternetURL:[a-zA-z] 阅读全文
posted @ 2019-06-29 10:16 一半人生 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 转自https://www.cnblogs.com/sgm4231/p/9782271.htmlphp中常用的正则表达式函数 * preg_match() * preg_match_all() * preg_replace() * preg_filter() * preg_grep() * preg 阅读全文
posted @ 2019-06-29 10:15 一半人生 阅读(1171) 评论(0) 推荐(0) 编辑