note 97408 deleted from function.preg-match by degeberg
| From: | degeberg@php.net | Date: | Sun, 18 Apr 2010 21:20:52 +0000 |
| Subject: | note 97408 deleted from function.preg-match by degeberg | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168379@lists.php.net to get a copy of this message | ||
Note Submitter: kabooh
Reason: bad code
----
function valid_email($email)
{ return preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",trim($email)); }