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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!