
thinkphp
本心丶
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
thinkphp5.0之自定义标签tag
1、新建一个自定义类,common/tag/Custom.php。namespace app\common\tag;use \think\template\TagLib;class Custom extends TagLib{ protected $tags = array( 'testclose' => array('attr' => 'name,co...转载 2018-04-11 13:46:29 · 4966 阅读 · 0 评论 -
常用正则
正则 说明实例身份证/^(\d{18,18}|\d{15,15}|\d{17,17}x)$/ 手机号/^0?(13|14|15|17|18|19)[0-9]{9}$/ 银行卡/^\d{16}|\d{19}$/ email/^\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}$/ 网址/^((https|http|ftp|rtsp|mms...原创 2018-04-11 14:00:10 · 371 阅读 · 0 评论