title: Removing key => value pairs from an array, but its not removing them
body: <p>I am trying to remove two key value pairs from an array, I am using the code below to segregate out the keys I don't want. I don't understand why it is not equating properly. if I remove the OR (<code>|| $key != 6</code>) it will work properly but I was hoping to have one if statement. Can anyone explain what I'm doing wrong?  Thanks.</p>
  
  <pre><code>$test = array( '1' =&gt; '21', '2' =&gt; '22', '3' =&gt; '23', '4' =&gt; '24', '5' =&gt; '25', '6' =&gt; '26'  );
  
  foreach( $test as $key =&gt; $value ) {
      if( $key != 4 || $key != 6 ) {
          $values[$key] = $value;
          echo '&lt;br /&gt;';
          print_r( $values );
      }
  }
  
  // Output
  Array ( [1] =&gt; 21 [2] =&gt; 22 [3] =&gt; 23 [4] =&gt; 24 [5] =&gt; 25 [6] =&gt; 26 ) 
  </code></pre>