用户名仅接受大小写英文,数字(如果愿意可以加上下划线什么的)
正则如下preg_match( "|^[a-zA-Z0-9]+$|", $data )
正则如下preg_match( "|^[a-zA-Z0-9]+$|", $data )
解决方案 »
- 请问php如何将一维数组的值分割成数组?
- 访问PHP数据库,mysql
- #1045 - Access denied for user 'root'@'localhost' (using password: NO)
- sprintf与mysql_real_escape_string问题?
- 我想取出本周的数据怎么取呢?
- 程序外包,急!最好在上海地区
- 请问,php里面有没有类似于 asp 的 application lock 功能?
- php中包含regular expression的字符串操作函数怎么用?
- flush 函数的作用??
- thinkphp多图上传插入数据库
- .cgi结尾的是什么语言做的啊?
- 请PHP高手进来指教,在线等~
取反就行了