title: PHP If a variable equals this or this
body: <p>I have this if statement in my PHP:</p>
  
  <pre><code>if($_SESSION['usrName']!='test1'){
      header('location:login.php');
  }
  </code></pre>
  
  <p>But i want it to be something like this:</p>
  
  <pre><code>if($_SESSION['usrName']!='test1' or 'user'){
      header('location:login.php');
  }
  </code></pre>
  
  <p>But i cant figure out how to do it in PHP code. I have tried this:</p>
  
  <pre><code>if($_SESSION['usrName']!='test1','user'){
      header('location:login.php');
  }
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>if(($_SESSION['usrName']!='test1')||($_SESSION['usrName']!='user')){
      header('location:login.php');
  }
  </code></pre>
  
  <p>Can anybody help please?</p>