title: OR in PHP IF Statement
body: <p>I am having trouble with my IF statement, it is always TRUE although this is incorrect. I'm using an OR operator as there are two possible scenarios I want to capture in the IF statement.  </p>
  
  <p>The array string ad_status is "1" but using the below -3 is returned, I'm expecting the IF to be FALSE. If I remove the OR and second statement from the IF, the result of the IF is correct. </p>
  
  <p>What have I done wrong? Thanks.</p>
  
  <pre><code>    if(($getadstatus['ad_status'] != "1" || $getadstatus['ad_status'] != "4"))
      {
          return -3;
          exit;
      }
  </code></pre>
  
  <p>Additional:
  What I want to do is exit the function (not seen in full here) if ad_status does not equal 1 or 4. If it equals any other value other than 1 or 4, the IF statement should return TRUE and exit. 
  ad_status could be any value from 0 to 4. </p>