title: Conditional to check if a variable is not equal to any number in a set
body: <p>Simple question: what's a more compact way to write a conditional like the following:</p>
  
  <pre><code>if ($i != 8 &amp;&amp; $i != 19 &amp;&amp; $i != 23 &amp;&amp; $i != 43) ...
  </code></pre>
  
  <p>I tried the following approaches with no luck:</p>
  
  <pre><code>if  ($i != 8 || 19 || 23 || 43) ...
  
  if ($i != 8 or 19 or 23 or 43) ...
  </code></pre>