Loading

摘要: ###验证中文名字 preg_match('/^([\xe4-\xe9][\x80-\xbf]{2}){2,4}$/', "王召波"); ###替换所以的中文字为 2a preg_replace("/([\x{4e00}-\x{9fa5}])/iu","2a","中文字测试") ###手机号 if( 阅读全文
posted @ 2017-08-30 20:21 王召波 阅读(370) 评论(0) 推荐(0) 编辑
摘要: $arr = ["a"=>'范德萨似懂非懂']; echo json_encode($arr,JSON_UNESCAPED_UNICODE); 阅读全文
posted @ 2017-08-30 20:16 王召波 阅读(318) 评论(0) 推荐(0) 编辑