如何设计一个检测PHP密码强度的长尾词?
- 内容介绍
- 文章标签
- 相关推荐
本文共计110个文字,预计阅读时间需要1分钟。
PHP密码强度检测代码如下:
php=8) $score +=1;if (preg_match('/[a-z]/', $password)) $score +=1;if (preg_match('/[A-Z]/', $password)) $score +=1;if (preg_match('/[0-9]/', $password)) $score +=1;if (preg_match('/[^a-zA-Z0-9]/', $password)) $score +=1;echo $score;?>
php密码强度检测= 10) { $score ++; } echo $score;
本文共计110个文字,预计阅读时间需要1分钟。
PHP密码强度检测代码如下:
php=8) $score +=1;if (preg_match('/[a-z]/', $password)) $score +=1;if (preg_match('/[A-Z]/', $password)) $score +=1;if (preg_match('/[0-9]/', $password)) $score +=1;if (preg_match('/[^a-zA-Z0-9]/', $password)) $score +=1;echo $score;?>
php密码强度检测= 10) { $score ++; } echo $score;

