- rand: documentation ( source)
<?php
$c = 'bcdfghjklmnprstvwz'; //consonants except hard to speak ones
$v = 'aeiou'; //vowels
$a = $c.$v; //both
for ($i = 1; $i <= 10; $i++) {
$pw = '';
//use two syllables...
for($j=0;$j < 2; $j++){
$pw .= $c[rand(0, strlen($c)-1)];
$pw .= $v[rand(0, strlen($v)-1)];
$pw .= $a[rand(0, strlen($a)-1)];
}
echo $pw . "\n";
}