PHP: using if when the second condition might not be set
<p>A pretty simple question, I am wondering how php handles the use of IF and AND.</p>

<p>Say i have the following php code:</p>

<pre><code>if ((pony) &amp;&amp; (pony == 2)) {
  /* do something */
}
</code></pre>

<p>if pony is equal to 0, would the code still check if pony is equal to 2 or would it stop there?</p>
