How can I check for duplicate email addresses in PHP, with the possibility of Gmail\'s automated labeler and punctuation in mind?
For example, I wan
function normalize($input) { $input = str_replace('.', '', $input); $pattern = '/\+(\w+)@/'; return preg_replace($pattern, '@', $input); }