(string) generate($size, $pw_flags)
Arguments
(int) | $size | Length of the generated password. Default value is 8 |
(string) | $pw_flags | Configuration flags for the password generation, default is 3 1: include at least 1 numeral 2: include at least 1 uppercase char 3: include at least 1 numeral and 1 uppercase char |
generate()
returns a password
Example
<pinp>
load("mod_password.php");
echo password::generate();
</pinp>