To check if what people put in a input box is really a email
you need this for register system because you usually have a input field for user to put in how to contact and usually email
function isValidEmail($email = '')
{
return preg_match("/^[\d\w\/+!=#|$?%{^&}*`'~-][\d\w\/\.+!=#|$?%{^&}*`'~-]*@[A-Z0-9][A-Z0-9.-]{1,61}[A-Z0-9]\.[A-Z]{2,6}$/ix",$email);
}
This will check to see if it is valid or not. Checking it is important because when you use a forums or something you need to make sure it is a e-mail, of course people can put in false email but this check if it is in email form like
person@something.com
_________________