What is the correct regular expression syntax to check if a password contains at least one letter in PHP?

To check if a password contains at least one letter in PHP, we can use a regular expression that matches any string that contains at least one alphabetical character. This can be achieved by using the regex pattern "[a-zA-Z]". This pattern will match any string that contains at least one lowercase or uppercase letter.

$password = "Password123";

if (preg_match('/[a-zA-Z]/', $password)) {
    echo "Password contains at least one letter.";
} else {
    echo "Password does not contain any letters.";
}