<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_65614"> <div class="blockcode"> <div id="code_TNB"><ol> <li>function auth_pwgen(){</li> <li> $pw = '';</li> <li> $c = 'bcdfghjklmnprstvwz'; //consonants except hard to speak ones</li> <li> $v = 'aeiou'; //vowels</li> <li> $a = $c.$v; //both</li> <li> </li> <li> //use two syllables...</li> <li> for($i=0;$i < 2; $i ){</li> <li> $pw .= $c[rand(0, strlen($c)-1)];</li> <li> $pw .= $v[rand(0, strlen($v)-1)];</li> <li> $pw .= $a[rand(0, strlen($a)-1)];</li> <li> }</li> <li> //... and add a nice number</li> <li> $pw .= rand(10,99);</li> <li> </li> <li> return $pw;</li> <li>}</li> </ol></div> <em onclick="copycode($('code_TNB'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> PHP</div> <div id="comment_65614" class="cm"> </div> <div id="post_rate_div_65614"></div> <br><br>