PHP AND OR , Is this valid?
<p>Is this valid?  I want to check if 'One' is not blank AND two is either blank or undefined. Can i use the brackets that way around both of GET[two]?</p>

<pre><code>if( $_GET["one"] == '' &amp;&amp;  ($_GET["two"] == '' ||  $_GET["two"] == 'undefined') ) {
 // do X
}
</code></pre>

<p>Thanks</p>
