MCQs > IT & Programming > Regular Expressions With PHP Test > Analyze the following code snippet used to check the password strength: < ?php $password = 'Fyfjk34sdfjfsjq7'; if (preg_match('/^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$/', $password)) { echo 'Your passwords is strong.'; } else { echo 'Your password is weak.'; } ?> What will be the output of the above code snippet?

Regular Expressions With PHP Test MCQs

Analyze the following code snippet used to check the password strength:

<?php
$password = "Fyfjk34sdfjfsjq7";
if (preg_match("/^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$/", $password))
     {
    echo "Your passwords is strong.";
     }
else
     {
    echo "Your password is weak.";
     }
?>

What will be the output of the above code snippet?


Answer

Correct Answer: Your password is strong.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Regular Expressions With PHP Test Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Regular Expressions With PHP Test Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it