title: How to assign multiple values to a PHP variable?
body: <p>How do I go about assigning multiple values for a single variable in PHP?</p>
  
  <p>I'm trying to do this</p>
  
  <pre><code>$IP = '111.111.111.111' || '222.222.222.222' || '333.333.333.333';
  
  if ($_SERVER['REMOTE_ADDR'] != $IP) {
  echo "Your IP is not on the list";
  </code></pre>
  
  <p>Is that even a proper way to do that?</p>
  
  <p>Or should I put them in an array like this</p>
  
  <pre><code>$IP = array('111.111.111.111', '222.222.222.222', '333.333.333.333');
  </code></pre>
  
  <p>But then how would I go about checking if the <code>$_SERVER['REMOTE_ADDR']</code> is one of the values inside the array?</p>
  
  <p>Thanks</p>