title: Valid email with preg_match
body: <p>I have problems to validate an email adress using preg_match().</p>
  
  <p>This is the block of code i have.</p>
  
  <pre><code>if (VerifierAdresseMail($email))
    echo '&lt;p&gt;valide.&lt;/p&gt;';
  else
    echo '&lt;p&gt;not valid&lt;/p&gt;';
  
  
    function VerifierAdresseMail($adresse) {
      $Syntaxe = '#^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$#';
      if (preg_match($Syntaxe, $adresse))
        return true;
      else
        return false;
    }
  </code></pre>
  
  <p>this does not seem to work. it's just returning a white page. I can't see the error althought i have this in my application.ini</p>
  
  <pre><code>[developpement : production]
  
  
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  phpSettings.track_errors = 1
  phpSettings.error_reporting = E_ALL
  
  resources.frontController.params.displayExceptions = 1
  
  phpSettings.date.timezone = "Europe/Paris"
  </code></pre>
  
  <p>Thanks for your help</p>