摘要: /** * 验证身份证基本格式 * @param $idcard * @return bool */ public static function validateIdcard($idcard) { $City = array( '11', '12', '13', '14', '15', '21', 阅读全文
posted @ 2017-10-12 09:51 木辰于 阅读(707) 评论(0) 推荐(0) 编辑
摘要: http://idea.lanyus.com/ 阅读全文
posted @ 2017-10-12 09:50 木辰于 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 匹配字符串 {% if '皮肤' in '皮肤23213' %}1{% else %}2{% endif %} 时间格式转换 {{ time|date('Y-m-d H:i:s') }} 提取需要长度的字符串 {{ app.session.get(‘city_name’)[0:2] }}(如北京市提 阅读全文
posted @ 2017-10-12 09:46 木辰于 阅读(261) 评论(0) 推荐(0) 编辑