Difference between == and === in PHP?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/80646/how-do-the-equality-double-equals-and-identity-triple-equals-comparis">How do the equality (== double equals) and identity (=== triple equals) comparison operators differ?</a><br>
  <a href="http://stackoverflow.com/questions/589549/php-vs-operator">php == vs === operator</a><br>
  <a href="http://stackoverflow.com/questions/8547487/double-equals-and-tripple-equals-in-php">Double equals and tripple equals in php</a>  </p>
</blockquote>



<p>Is there an important difference between this:</p>

<pre><code> 1. ... $request-&gt;getMethod() == 'POST'
</code></pre>

<p>and this:</p>

<pre><code> 2. ... 'POST' === $request-&gt;getMethod()
</code></pre>

<p>People seem to use the second one mostly, why? Finally, is the order of the arguments important for number 2?</p>
