ASPit - Totally ASP
.
Search PHPit

Use this textbox to search all the content on PHPit. Seperate keywords with a space.

Advertisements
Partners

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($encoded, 2, '%');
    
$encoded = '%' . substr($encoded, 0, strlen($encoded) - 1);
    return
$encoded;
}
?>

Written by Dennis Pallett on April 02, 2004