3

validatepassword

validate_password
SYNOPSIS

validate_password($s)

DESCRIPTION
CODE
  1. function validate_password($s) {
  2. //  $regexp='/(?=[a-zA-Z0-9]*?[A-Z])(?=[a-zA-Z0-9]*?[a-z])(?=[a-zA-Z0-9]*?[0-9])[a-zA-Z0-9]{6,}/';
  3.     $regexp='/(?=[a-zA-Z0-9]*?[A-Za-z])(?=[a-zA-Z0-9]*?[0-9])[a-zA-Z0-9]{6,}/';
  4.  
  5.     return preg_match($regexp, $s);
  6. }

Comments

To add a comment, click here.