PHP Logical Operators && || Question
<p>I'm trying to ignore IE7 and IE8 but am having a tiny bit of trouble getting the operators to work properly. </p>

<pre><code>&lt;?php 
    if(stristr(strtolower($_SERVER['HTTP_USER_AGENT']), "msie 8") &amp;&amp; (strtolower($_SERVER['HTTP_USER_AGENT']), "msie 7") == false ){
    echo "&lt;script type=\"text/javascript\"&gt; 
       $(document).ready(function() {
        // ok
        });
    &lt;/script&gt;";
}?&gt;
</code></pre>

<p>My other option gives me no errors but is not functioning properly:</p>

<pre><code>&lt;?php 
    if(stristr(strtolower($_SERVER['HTTP_USER_AGENT']), "msie 8" || ($_SERVER['HTTP_USER_AGENT']), "msie 7") == FALSE){
    echo "&lt;script type=\"text/javascript\"&gt; 
       $(document).ready(function() {
        // OK
        });
    &lt;/script&gt;";
}?&gt;
</code></pre>
