代码很简单,使用了正则表达式,大家参考使用吧
function is_md5($password) {
return preg_match("/^[a-z0-9]{32}$/", $password);
}