Posted By

iTony on 03/20/08


Tagged

email encode security spammers


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

wbowers
bsisco
Nix


Encode Email against spammers


 / Published in: PHP
 

this is not the ultimate secure way, but it's at least not displaying the email link

  1. function encode_email($e)
  2. {
  3. for ($i = 0; $i < strlen($e); $i++) { $output .= '&#'.ord($e[$i]).';'; }
  4. return $output;
  5. }

Report this snippet  

You need to login to post a comment.