Human Readable Random String

Submitted by:Jhon Jhon

Date added:25 May, 2013


PHP code to create a human readable string that will look more close to dictionary words, useful for captchas.

Tags: random string , readable string

Code Snippet:

*@length - length of random string (must be a multiple of 2)
function readable_random_string($length = 6){
srand ((double)microtime()*1000000);
$max = $length/2;
for($i=1; $i<=$max; $i++)
return $password;