/* 检查是否是数字和字母* php内置函数ctype_alnum检查字符串是否是数字和字母,或者两者混合* $string*/
public function is_numandlitter($string) {     
    if (ctype_alnum($string)) {        
        return true;     
    } else {         
        return false;     
    }
}

摘自:https://www.jianshu.com/p/921600a85f64

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-06-05
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-09-09
猜你喜欢
  • 2021-11-17
  • 2021-09-20
  • 2021-11-05
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案