FILTER_SANITIZE_EMAIL

Remove all illegal email characters

Example
======

<?php
echo filter_var(“info()@phpcodez.com”, FILTER_SANITIZE_EMAIL);
?>

Output
=====

info@phpcodez.com