Php verifies whether the user name starts with a letter and the verification password. Verify that the user name starts with a letter and the verification password can only be a combination of numbers and letters. three common verification functions: verify the email address format. verify that the password can only be a number and a letter. verify that the user name starts with a letter. and the verification password can only be a combination of numbers and letters
Three common verification functions are used to verify the email address format. the verification password can only be a combination of numbers and letters to verify whether the user name starts with a letter. this is used when a user registers or submits a form.
Function is_email ($ email) {if (preg_match ("/[A-Za-z0-9] + @ [A-Za-z0-9] +. [a-z] {2, 4}/", $ email, $ mail) {return true;} else {return false ;}} /*** verify whether the user name starts with a letter */function is_user_name ($ user) {if (preg_match ("/^ [a-za-z] {1} ([A-Za-z0-9] | [. _]) {3, 19} $/", $ user, $ username) {return true;} else {return false ;}} /*** the verification password can only be a combination of numbers and letters */function is_ps Tutorial d ($ psd) {if (preg_match ("/^ (w) {4, 20} $/", $ psd, $ password) {return true;} else {return false ;}}
Token three common verification functions verification email address format verification password can only be numbers and letters...