Strips out all characters that are not allowable in an email address.
sanitize_email() has done its work, it passes the sanitized e-mail address through the sanitize_email filter.
<?php sanitize_email( $email ) ?>
<?php $sanitized_email = sanitize_email(' firstname.lastname@example.org! '); echo $sanitized_email; // will output: 'email@example.com' ?>
sanitize_email() is located in
sanitize_email() is in a class of functions that help you sanitize potentially unsafe data which allow you to pass an arbitrary variable and receive the clean version based on data type. Others include: