note 106183 deleted from function.filter-var by sp

From: Date: Wed, 09 May 2012 14:23:12 +0000
Subject: note 106183 deleted from function.filter-var by sp
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187551@lists.php.net to get a copy of this message
Note Submitter: marc at nwd dot mx ---- 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.

« previous php.notes (#187551) next »