Posted By

luman on 06/29/06


Tagged

password


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

daniel
jkochis
shamrog12
blakeb
pixelhandler


makePass


 / Published in: PHP
 

  1. function makepass() {
  2. $cons = "bcdfghjklmnpqrstvwxyz";
  3. $vocs = "aeiou";
  4. for ($x=0; $x < 6; $x++) {
  5. mt_srand ((double) microtime() * 1000000);
  6. $con[$x] = substr($cons, mt_rand(0, strlen($cons)-1), 1);
  7. $voc[$x] = substr($vocs, mt_rand(0, strlen($vocs)-1), 1);
  8. }
  9. $makepass = $con[0] . $voc[0] .$con[2] . $con[1] . $voc[1] . $con[3];
  10. return $makepass;
  11. }

Report this snippet  

You need to login to post a comment.