function isValidEmail($email){
return eregi(”^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]
+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$”, $email);
}
Post your trick
Email check in php
One Response to “Email check in php”
Leave a Reply
Post A Trick !
How does "Kodetricks" work?
We at kodeplay like to share knowledge. With Kodetricks, even you can join us. All you need to do is post a programming related trick if you have one or rate a trick if you like someone else's.
please explain how regex works in this case for newbies