Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Create a new snippet, title it encodeEmail and add this:
- <?php
- $output = '';
- for ($i = 0; $i < strlen($email); $i++)
- {
- $output .= '&#'.ord($email[$i]).';';
- }
- return $output;
- 2. Use this code to output accessible and encoded email addresses:
- [[!encodeEmail?email=`you@example.com.au`]]
Add Comment
Please, Sign In to add comment