Create Random Username And Password Php

[Solved] Create Random Username And Password Php | Php - Code Explorer | yomemimo.com
Question : auto generate password in php

Answered by : adventurous-alligator-inpliidfbzvn

function rand_string( $length ) { $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; return substr(str_shuffle($chars),0,$length);
}
echo rand_string(8);

Source : | Last Update : Sat, 04 Jul 20

Answers related to create random username and password php

Code Explorer Popular Question For Php