更新时间:2022-05-25 17:14:11
使用
preg_match('/^[a-z0-9 .-]+$/i', $firstname)
PHP只允许使用pregMatch的字母、数字、空格和特定符号