- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
function get_rand_word () {
$list = explode(" ", file_get_contents('http://www.gnu.org/licenses/gpl-3.0.txt'));
$cwords = rand (2,5);
$string = '';
$r = 0;
while($r++<$cwords) {
$string .= preg_replace('~[^a-z]+~', '', strtolower($list[rand(0, (count($list)-1))]));
}
return $string;
}