note 105210 deleted from function.filter-var by sp
| From: | sp@php.net | Date: | Wed, 09 May 2012 14:22:44 +0000 |
| Subject: | note 105210 deleted from function.filter-var by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187549@lists.php.net to get a copy of this message | ||
Note Submitter: sampathperera at hotmail dot com
----
PHP FILTER_VALIDATE_EMAIL validates with no TLD
<?php
var_dump(filter_var('bob@example', FILTER_VALIDATE_EMAIL));
?>
Output bool(false) expected.
But it returns: string(11) "bob@example"