php验证email拼写的正确性
function is_email($email) {
$exp = "^[a-z'0-9]+([._-][a-z'0-9]+)*@([a-z0-9]+([._-][a-z0-9]+))+$";
if(eregi($exp,$email)) {
return true;
}
return false;
}
Stand still in the wind.
function is_email($email) {
$exp = "^[a-z'0-9]+([._-][a-z'0-9]+)*@([a-z0-9]+([._-][a-z0-9]+))+$";
if(eregi($exp,$email)) {
return true;
}
return false;
}