subha rr Posted July 5, 2008 Share Posted July 5, 2008 Hi..........How to check the given string is email or not. we using php functions.... Link to comment Share on other sites More sharing options...
boen_robot Posted July 5, 2008 Share Posted July 5, 2008 The easiest way is with filter_var(). Check out the link for a sample code.Next time, search the PHP manual before you ask. Link to comment Share on other sites More sharing options...
Synook Posted July 6, 2008 Share Posted July 6, 2008 If you don't like the FILTER_VALIDATE_EMAIL filter (looking in the bug list there are some complaints), you can also use a regular expression with preg_match() - search Google for some email regexs. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.