How exactly does if($variable) work?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6554384/regarding-if-statements-in-php">Regarding if statements in PHP</a>  </p>
</blockquote>



<p>In PHP scripts - what does an if statement like this check for?  </p>

<pre><code>&lt;?php if($variable){ // code to be executed } ?&gt;  
</code></pre>

<p>I've seen it used in scripts several times, and now I really want to know what it "looks for". It's not missing anything; it's just a plain variable inside an if statement... I couldn't find any results about this, anywhere, so obviously I'll look stupid posting this.</p>
