ASPit - Totally ASP JSit - Totally JavaScript
Search PHPit

Use this textbox to search for articles on PHPit. Seperate keywords with a space.


Encode e-mail address

Use this handy function to encode e-mail addresses so it still looks good to humans, but can’t be read by (spam) bots.

function encode_email($email) {
$encoded bin2hex($email);
$encoded chunk_split($encoded2'%');
$encoded '%' substr($encoded0strlen($encoded) - 1);

One Response to “Encode e-mail address”

  1. oppo GOP Says:

    erly i used jScript.. it `s good // thanks

Leave a Reply