Hide your e-mail address using PHP


/ Published in: PHP
Save to your folder(s)

usage:


Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.