As a developer sometime we have to put auto password generation in our registration to help user to get a strong password and their convenience. In PHP, it's very simple to create a auto password generator. PHP has two build in functions one is SUBSTR and another one is STR_SHUFFLE.
Subastr function can slice an specific length of characters from a given string, the function is
Subastr function can slice an specific length of characters from a given string, the function is
string substr ( string
$string , int $start [, int $length ] )
The first parameter is the given string, second one is the starting point of substring and last one is for total length of sub string.You can see details in PHP manual.