PHPBuilder - Is Email



RSS Twitter
Snippets Algorithms

Is Email

by: Christopher del Rosario
|
January 13, 2002

Version: 1.0

Type: Function

Category: Algorithms

License: GNU General Public License

Description: Email format validator :)



<?
function is_Email($em)
{
    if (preg_match("/^(\w+((-\w+)|(\w.\w+))*)\@(\w+((\.|-)\w+)*\.\w+$)/",$em))
       return true;
    else return false;
}
?>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Christopher del Rosario

Comment:



Comment:

(Maximum characters: 1200). You have characters left.