Difference Between $a = 0 and $a = '0' in PHP
<p>I had an if statement similar to the following in my code and it took me forever to figure out what the problem was.</p>

<pre><code>$a = 0;
if($a == 'something')
 {
 //this was being output when I didn't want it to be
 }
</code></pre>

<p>Using </p>

<pre><code>$a = '0'; 
</code></pre>

<p>fixed it, but I don't really know what's going on here.</p>
