Return to Snippet

Revision: 50714
at August 31, 2011 03:53 by fackz


Initial Code
function convert_email_adr($email) {
    $pieces = str_split(trim($email));
    $new_mail = '';
    foreach ($pieces as $val) {
        $new_mail .= '&#'.ord($val).';';
    }
    return $new_mail;
}

Initial URL
http://www.web-development-blog.com/archives/e-mail-links-protective-solutions-against-spam/

Initial Description
usage:
<?php>

Initial Title
Hide your e-mail address using PHP

Initial Tags
email

Initial Language
PHP