/ Published in: PHP
This code will create a human readable string that will look more close to dictionary words, useful for captchas.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/************** *@length - length of random string (must be a multiple of 2) **************/ function readable_random_string($length = 6){ "m","n","p","r","s","t","v","w","x","y","z"); $password=""; $max = $length/2; for($i=1; $i<=$max; $i++) { } return $password; }