1. function readable_random_string($length = 6){
  2.     $conso=array(“b”,”c”,”d”,”f”,”g”,”h”,”j”,”k”,”l”,
  3.     “m”,”n”,”p”,”r”,”s”,”t”,”v”,”w”,”x”,”y”,”z”);
  4.     $vocal=array(“a”,”e”,”i”,”o”,”u”);
  5.     $password=””;
  6.     srand ((double)microtime()*1000000);
  7.     $max = $length/2;
  8.     for($i=1; $i<=$max; $i++)
  9.     {
  10.     $password.=$conso[rand(0,19)];
  11.     $password.=$vocal[rand(0,4)];
  12.     }
  13.     return $password;
  14. }
(Visited 245 times, 1 visits today)