note 109005 deleted from function.filter-var by danbrown

From: Date: Wed, 13 Jun 2012 15:25:46 +0000
Subject: note 109005 deleted from function.filter-var by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188571@lists.php.net to get a copy of this message
Note Submitter: diogo-nechtan at tagon8inc dot com ---- echo "PHP Version: " . phpversion() . "\n"; var_dump(filter_var('"this is a valid email@[]{}and it should be"@example.com', FILTER_VALIDATE_EMAIL)); var_dump(filter_var('example@example', FILTER_VALIDATE_EMAIL)); var_dump(filter_var('nechtan@tagon8inc.com', FILTER_VALIDATE_EMAIL)); PHP Version: 5.3.1 // hmm? string(56) ""this is a valid email@[]{}and it should be"@example.com" string(15) "example@example" string(19) "nechtan@tagon8inc.com" PHP Version: 5.3.13 // thats ok! bool(false) bool(false) string(22) "nechtan@tagon8inc.com.br"

« previous php.notes (#188571) next »