title: domain specific validation of email in php forms
body: <p>I'm trying to verify the entered email address to be in a specific domain only; for example: only @hotmail.com  emails are accepted.
  Here is my code:</p>
  
  <pre><code>function valid_email($email) {
      return !!filter_var($email, FILTER_VALIDATE_EMAIL);
  }
  </code></pre>
  
  <p>I don't know how/where to put the specific domain validation part</p>