$pregRet = preg_match_all('/./u',$bookName,$matches);
if ($pregRet) {
foreach ($matches[0] as $match) {
if (strlen($match) >= 4) {
$returnArr['status'] = -317;
$returnArr['message'] = '不支持特殊字符';
echo json_encode($returnArr);
exit(0);
}
}
}
http://www.jianshu.com/p/2597d4c3a183
http://www.5idev.com/p-php_preg_match.shtml
http://liheanyway007.blog.163.com/blog/static/181773148201262952341896/
http://www.jb51.net/article/101157.htm
http://blog.youkuaiyun.com/ugg/article/details/44225723
https://zhidao.baidu.com/question/394232235.html
mysql 修改字段支持 emoji
ALTER TABLE tb_case MODIFY COLUMN content VARCHAR(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;