Why doesn't my code to test an email address against a specific domain work?
<p>I wanted to allow only specific email domain. Actually I did it. What i wanted to ask why my first code did not work at all.</p>

<p>I am just trying to learn PHP so that the question may seem silly, sorry for that.
Here is my code:</p>

<pre><code>function check_email_address($email) {      
    $checkmail = print_r (explode("@",$email));
    $container = $checkmail[1];
    if(strcmp($container, "gmail.com")) {
        return true;
    }else { 
        return false;
    }
}
</code></pre>
