Posted By

fackz on 08/31/11


Tagged

email hide your


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

345crew
fackz


Hide your e-mail address using PHP


 / Published in: PHP
 

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

usage: <?php>

  1. function convert_email_adr($email) {
  2. $pieces = str_split(trim($email));
  3. $new_mail = '';
  4. foreach ($pieces as $val) {
  5. $new_mail .= '&#'.ord($val).';';
  6. }
  7. return $new_mail;
  8. }

Report this snippet  

You need to login to post a comment.