PHP multiple If conditions are true
<p>I have this PHP code:</p>

<pre><code>$supplier = $line[2];
if ($supplier == "supplier")
{
} else {
Header("Location: premium.php");
}
</code></pre>

<p>Now I want that to include $supplier == "demo" to the PHP code to be as follows:</p>

<pre><code>$supplier = $line[2];
if ($supplier == "supplier" &amp;&amp; $supplier == "demo")
{
} else {
Header("Location: premium.php");
}
</code></pre>

<p>but the latter code is not working for either... I mean if the $supplier is equal to something else besides "supplier" or "demo" it is still bypassing it. It only worked for the first one. </p>

<p>How can I arrange it please?</p>
