Encrypt Email Addresses - PHP

The Function

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

Usage

echo(encode_email('user@example.com'));

Source

Need Help?

Do you need any help on PHP? I'm happy to help you.

Contact Me