Retweet
I wrote a little function to check the formatting of an email so I thought I would share it with the world:


<?php
function is_email($email) {

if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)){

return 1;
} else {

return 0;
}
}
?>