www.zend.com has one that generates pronounceable passwords. I've modified it a bit to produce the code below. Hope it helps.
Rob
<?php
/ Generate password. (i.e. jachudru, cupheki) /
function genpassword() {
$letter_length = 6;
srand((double)microtime()*1000000);
$cons = array("b", "c", "d", "g", "h", "j", "k", "m", "n", "p", "r", "s", "t", "u", "v", "w", "tr", "cr", "br", "fr", "th", "dr", "ch", "ph", "wr", "st", "sp", "sw", "pr");
$vowels = array("a", "e", "i", "o", "u", "y");
$numbers = array("2","3","4","5","6","7","8","9");
$num_vowels = count($vowels);
$num_cons = count($cons);
for($i = 0; $i < $letter_length; $i++){
$password .= $cons[rand(0, $num_cons - 1)] . $vowels[rand(0, $num_vowels - 1)];
}
$password = substr($password, 0, $letter_length).rand(0,99);
return $password;
}
echo genpassword();
?>