The FILTER_SANITIZE_EMAIL filter removes all illegal e-mail characters from the string.
This filter allows all letters, numbers, and $-_.+!*'{}|^~[]`#%/?@&=
Name: "email"
ID-number: 517
<?php$var="some(one)@example.com";var_dump(filter_var($var, FILTER_SANITIZE_EMAIL));?>
The output of the code looks like this:
string(19) "[email protected]"