Snippets v2

Languages
My Snippets

Email address validator Login or Register to Bookmark this snippet

Description PHP

This function validates and email address by way of eregi expression.

The Code Download
  1. <?php
  2. function is_email_valid($email) {
  3.   if(eregi("^[a-z0-9\._-]+@+[a-z0-9._-]+.+[a-z]{2,3}$", $email)) return TRUE;
  4.   else return FALSE;
  5. }
  6. ?>
Credits Contact JC

Added by JC on 11th November, 2007

Comments

There are no comments about this snippet.

Post Comment HTML is allowed

You must be registered and logged in to post a comment.

Login here to post a comment