Question: Study the class below: class Validate { private static $usernameExp = / ^ [ [ :lower: ] ] { 4 } $ /

Study the class below:
class Validate{
private static $usernameExp ="/^[[:lower:]]{4}$/";
private static $passwordExp ="/^[[:digit:]]{6,8}$/";
public static function checkUsername($un){
return preg_match(self::$usernameExp,$un);
}
public static function checkPassword($pd){
return preg_match(self::$passwordExp,$pd);
}
}
Which of the following is correct with respect to this class?

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!