chars; $crap = ""; for ($i = 0; $i < $n; $i++) { $index = rand(0, strlen($chars) - 1); // note -1 because 0 based index $crap .= $chars[$index]; } return $crap; } function getwords($n = 1){ // defaults to one word $crap= []; $lsw = explode(" ",$this->lipsum); for ($i = 0; $i < $n; $i++ ) { $index = rand(0,count($lsw) - 1 ); array_push($crap,$lsw[$index]); } return $crap; } function genemail($n = 1) { // for each email we want two words $tcrap = ""; $crap = []; for ($i = 0; $i < $n; $i++){ $words = $this->getwords(2); $tcrap .= $words[0] . "." . $words[1] . "@gmail.com"; array_push($crap,$tcrap); $tcrap = ""; } return $crap; } } $espam = new eatspam(); ?> Contact E-mails
 genemail(3) as $email){
    print "". $email . "\n";
}
    ?>
    
genstr(6)."\">next page"; ?>