note 106183 added to function.filter-var
| From: | marcatnwddotmx at osu1 dot php dot net | Date: | Mon, 17 Oct 2011 17:47:49 +0000 |
| Subject: | note 106183 added to function.filter-var | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183938@lists.php.net to get a copy of this message | ||
Validating with no TLD is correct. If you have local servers and use it for local domain based
emails (i.e. user@localhost) it's completely valid.
If you want to check for emails with TLD, you can either use a regular expression or some framework.
I personally use Zend Framework's Zend_Validate_Email.
----
Server IP: 111.90.255.228
Probable Submitter: 202.177.218.59
----
Manual Page -- http://www.php.net/manual/en/function.filter-var.php
Edit -- https://master.php.net/note/edit/106183
Del: integrated -- https://master.php.net/note/delete/106183/integrated
Del: useless -- https://master.php.net/note/delete/106183/useless
Del: bad code -- https://master.php.net/note/delete/106183/bad+code
Del: spam -- https://master.php.net/note/delete/106183/spam
Del: non-english -- https://master.php.net/note/delete/106183/non-english
Del: in docs -- https://master.php.net/note/delete/106183/in+docs
Del: other reasons-- https://master.php.net/note/delete/106183
Reject -- https://master.php.net/note/reject/106183
Search -- https://master.php.net/manage/user-notes.php