Weird if condition issue in PHP
<p>I have the following code: </p>

<pre><code>$_SESSION['user_role'] = 1;

if ($_SESSION['user_role'] != '1' || $_SESSION['user_role'] != '2') {
    return false;
} else {
    return true;
}
</code></pre>

<p>Why does this if() always returns false?</p>
