php正则校验用户名介绍

2018-09-07 15:12

阅读:315

  <?php

if(mb_ereg(^[\w\-\.]{1,32}$,$str)){
echoyes;
}else{
echono;
}

?>


评论


亲,登录后才可以留言!