title: Something wrong with my second else statement?
body: <pre><code>&lt;?php
      $check = array ("85.49.","85.62.");
  
      foreach($check as $var) {
          if (ereg($var, $_SERVER['REMOTE_ADDR'])) {
              $intruder = 0; 
          }
          else {
              $intruder = 1;
          }
          if ($intruder = 0);
              echo 'bugger off';
          }
          else{
              echo 'welcome';
          }
  ?&gt;
  </code></pre>
  
  <p>What could be wrong with my second else? Dreamweaver red flags it and my server says error. All I want to do is get it to behave one way or another if $intruder is 1 or 0.</p>