问答 / 940 / 2 / 创建于 5年前
创建表,比如 User 表的用户名 name 不包含空格限制怎么做呢?
非要强行不限制 用正则吧 REGEXP
$str = preg_replace('/\s*/', '', $str);
我要举报该,理由是:
推荐文章: