摘要: https://www.cnblogs.com/iAmSoScArEd/ 时间格式说明: 1、PHP基本常用的时间函数 date(): 把时间戳格式化为更易读的日期和时间 time(): 获取当前 Unix 时间戳 strtotime(): 将表示时间和日期的字符串转化为相应的时间戳 mktime( 阅读全文
posted @ 2019-05-19 01:11 我超怕的 阅读(536) 评论(0) 推荐(0) 编辑
摘要: $res=array();$str="你好aaaaa啊" preg_match_all("/[\x{4e00}-\x{9fa5}]+/u",$str,$res); var_dump($res); //输出//array(1) { [0]=> array(2) { [0]=> string(6) "你好" [1]=> string(3) "啊" } } 阅读全文
posted @ 2019-05-19 00:58 我超怕的 阅读(7139) 评论(1) 推荐(0) 编辑