I created a short script that should look at the $email and see if there's an @ symbol and tells you either you have one or not. Then, it should check each of the extensions $protocols array and tell you if there is the extension in the $email. It gets through the first two of $protocols; however, stops cold with no error messages or to continue through the $protocols.
<?
// Set searching info!
    $attsymbol = "@";
    $protocols = array('.com', '.net', '.org', '.biz', '.info', '.edu', '.mil', '.cc', '.co', '.website', '.site', '.tech', '.tv');
// Set email
    $email = "bob@email.website";
// check for the @ symbol!
    if (!strpos($email, $attsymbol))
        {
            die ("There is no " . $attsymbol . " in the email address!<br>");
        }
    else
        {
            echo "This is an " . $attsymbol . " in the email address!<br>";
// Check for all of the protocols in the array!
    foreach ($protocols as $protocol)
        {
        echo $protocol . "<br>";
            if (!strpos($email, $protocol))
                {
                    die("There is no " . $protocol . " in the email address!<br>");
                }
            else
                {
                    echo"There is a " . $protocol . " in the email address!<br>";
                }
        }
    }
?>
Thank you in advance for your assistance with this!
 
     
     
    