$ps="";
while(strlen($ps)<9){
switch(rand(1,3)){
case 1:
$ps=$ps.chr(rand(65,90));
break;
case 2:
$ps=$ps.chr(rand(97,122));
break;
case 3:
$ps=$ps.chr(rand(48,57));
break;
}
}
資料來源:http://tw.knowledge.yahoo.com/question/question?qid=1406081506091
$ps="";
while(strlen($ps)<9){
switch(rand(1,3)){
case 1:
$ps=$ps.chr(rand(65,90));
break;
case 2:
$ps=$ps.chr(rand(97,122));
break;
case 3:
$ps=$ps.chr(rand(48,57));
break;
}
}
沒有留言:
張貼留言