Using an array that will determine GMAIL, HOTMAIL, OUTLOOK, how can I tell if what the user has submitted is some?
Easy ...
Using an Array, you can check any types of official E_mails you want.
$email = '[email protected]';
$array_emails = array('gmail.com', 'hotmail.com', 'outlook.com');
$separate_email = explode('@', $email);
$email_name = $separate_email[0];
$email_domain = $separate_email[1];
if (!in_array($email_domain, $array_emails)) {
echo "Este e-mail não é official.";
}
* Thanks to those who helped
Visit and give opinions about the Project. www.superfacil.pt