Kod:
function spamprotect ($mail) {
$email=explode("<span class="userTag">@"</span>,$mail);
$tammail="[".$email[0]."][<span class="userTag"><span class="userTag">@]</span></span>";
$email=explode(".",$email[1]);
while (list($indexno,$deger)=each($email)) {
$tammail.="[".$deger."]";
}
return $tammail;
}
Kod:
echo spamprotect('turker<span class="userTag">@eggdropturk.com');</span>