php only allow letters, numbers, spaces and specific symbols using pregmatch

后端 未结 3 985

on my php i use preg_match to validate input texts.

if(preg_match(\'/^[a-zA-Z0-9]+$/\', $firstname)) {
}

But this only allows alp

3条回答
提交回复
热议问题