note 53180 deleted from function.strstr by nlopess
| From: | nlopess@php.net | Date: | Tue, 07 Jun 2005 14:24:56 +0000 |
| Subject: | note 53180 deleted from function.strstr by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90067@lists.php.net to get a copy of this message | ||
Note Submitter: josejayesh [dot] gmail.com
----
Email Check
<?php
$email="someone@gmail.com";
if ( strstr($email, "@") ) {
if (strstr($email,".")){
echo "Valid";
}
else
{
echo "invalid Email";
}
}
else
{
echo "invalid Email";
}
?>