It need not be meaningful words - more like random password generation, but the catch is - they should be unique. I will be using this for some kind of package / product cod
Heres a very simple way
$chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; $temp_pw = substr( str_shuffle( $chars ), 0, 7 ); if ( check_unique( $temp_pw ) ) { $pw = $temp_pw; }
You'll have to implement your own check_unique function. That part should be easy.