Why are conditional statements not working in this example?
<p>I'm a bit perplexed with this code. <code>$this-&gt;product</code> is an Object with 12 vars. The var_dump indicates that <code>$key</code> is a string.</p>

<pre><code>foreach ($this-&gt;product as $key =&gt; $val) {
    if (($key !== "id") || ($key !== "weight")) {
        var_dump($key);
    } else {
        print_r("Success" . $key);
    }
}
</code></pre>

<p>Despite "id" and "weight" being present as var names and represented as strings within <code>$key</code> they are not caught with this conditional. Does anyone have any ideas?</p>
