PHP Email Sanitization Function

function sanitize_email($email) {
    return filter_var($email, FILTER_SANITIZE_EMAIL);
}

Leave a Comment

Your email address will not be published. Required fields are marked *