title: PHP if condition with boolean
body: <p>Why does this <a href="http://sandbox.onlinephpfunctions.com/code/d5fff6ee86bc7c62d7624a39a1070cff770ad4aa" rel="nofollow">happen</a>? </p>
  
  <pre><code>&lt;?php $result = true ;
      if($result == 'SOME TEXT')
          echo 'why is this true? why is this printed?';        
      else
          echo 'when this should be printed?'
  ?&gt;
  </code></pre>
  
  <p>Please explain, I am not looking for alternative method.        </p>