Encode e-mail address
Use this handy function to encode e-mail addresses so it still looks good to humans, but can’t be read by (spam) bots.
function encode_email($email) {
$encoded = bin2hex($email);
$encoded = chunk_split($encoded, 2, '%');
$encoded = '%' . substr($encoded, 0, strlen($encoded) - 1);
return $encoded;
}
?>
July 15th, 2006 at 12:26 am
erly i used jScript.. it `s good // thanks