1
2
3
4
5
6
7
8
|
public function create_code( $pw_length )
{ $randpwd
= "" ;
for
( $i = 0; $i < $pw_length ; $i ++) {
$randpwd
.= chr (mt_rand(33, 126));
} return urlencode( $randpwd );
} |