Several Ways to Generate a Random Password Using PHP 

Using PHP to develop applications, especially web application is often necessary to generate a random password to generate a random password, such as user registration, user reset the password to generate a random password. Random password is a string of fixed-length string, I collected several methods to generate a random string for your reference.

Way 1:

1. In 33 - 126 to generate a random integer, such as 35.

2. 35 will be converted into the corresponding ASCII characters, such as 35 corresponding to #. Read more