Sanitise or validate email php
<p>I am using <code>filter_var</code></p>

<p>and a function to check if the email is valid</p>

<pre><code>function checkEmail($email)
{
    return filter_var($email, FILTER_VALIDATE_EMAIL);
}
</code></pre>

<p>This is only thing I do. In registration for example i validate email with this function then insert in database (prepared statement used ofc) <strong>But is it essential to use sanitisation in this function as well?</strong> Is there any "VALID" but "DANGEROUS" email that could cause problem...?</p>
