password_strength

Evaluates the strength of a password.

Syntax

password_strength( password )

Arguments

Argument Description
password (string) The password to test.

Returns

(Integer). A number (1-10) that represents the strength of the password (less than 2 is weak, 2-4 is acceptable, 5 or more is strong).