E-mail adreslerini toplayan programlardan korunmak için:


function spamprotect ($mail) { 
    $email=explode("@",$mail); 
    $tammail="[".$email[0]."][@]"; 
    $email=explode(".",$email[1]); 
    while (list($indexno,$deger)=each($email)) { 
        $tammail.="[".$deger."]"; 
    } 
    return $tammail; 
}
Örnek kullanım:

echo spamprotect('turker@eggdropturk.com'); 
//[turker][@][eggdropturk][com] olarak gözükecek.