Question: using PHP, Create a function named checkPassword that does the following: 1. Receives as a parameter a password. 2. Uses functions and Regular Expressions to
using PHP, Create a function named checkPassword that does the following:
1. Receives as a parameter a password.
2. Uses functions and Regular Expressions to check the rules for a password.
3. If the password is invalid, return a string that contains the password and a description of why it is invalid.
4. Returns TRUE Boolean value if the password is valid.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
