note 111051 added to function.filter-var
| From: | alex4home at gmail dot com | Date: | Thu, 10 Jan 2013 00:18:04 +0000 |
| Subject: | note 111051 added to function.filter-var | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192863@lists.php.net to get a copy of this message | ||
Keep in mind that FILTER_VALIDATE_EMAIL will validate the email address according to standards.
However, giving the fact that organizations are free to restrict the forms of their own email
addresses, using ONLY this filter can you a lot of bounces.
gmail, yahoo, hotmail, aol have special rules
For example :
<?php
$email_a = '0hot\'mail_check@hotmail.com';
if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) {
echo "This (email_a) email address is considered valid.";
//reported as valid
}
//there can be no "0hotmail_check@hotmail.com"
//because hotmail will say "Your email address needs to start with a letter. Please try
again." even if you remove the '
----
Server IP: 69.147.83.199
Probable Submitter: 82.76.226.233
----
Manual Page -- http://php.net/manual/en/function.filter-var.php
Edit -- https://master.php.net/note/edit/111051
Del: integrated -- https://master.php.net/note/delete/111051/integrated
Del: useless -- https://master.php.net/note/delete/111051/useless
Del: bad code -- https://master.php.net/note/delete/111051/bad+code
Del: spam -- https://master.php.net/note/delete/111051/spam
Del: non-english -- https://master.php.net/note/delete/111051/non-english
Del: in docs -- https://master.php.net/note/delete/111051/in+docs
Del: other reasons-- https://master.php.net/note/delete/111051
Reject -- https://master.php.net/note/reject/111051
Search -- https://master.php.net/manage/user-notes.php