<?php
/*
function mail_mash() */
if (!function_exists('mail_mash')) {
function mail_mash($addy) {
$addy = 'mailto:'.$addy;
for ($i = 0 ; $i < strlen($addy) ; $i++){ $letters[] = $addy[$i]; }
while (list($key, $val) = each($letters)) {
$r = rand(0,20);
if ($r > 9) { $letters[$key] = '&#'.ord($letters[$key]).';'; }
}
$mashed_email_addy = implode('', $letters);
return $mashed_email_addy;
}
}
?>