title: PHP foreach/else issue
body: <pre><code>foreach($cases['rows'] as $i =&gt; $item) {
      foreach($array as $key =&gt; $val) {
          if($item['status'] == $key) {
              echo $val;
          }
      }
  }
  </code></pre>
  
  <p>Right now this code functions, but if <code>$item['status'] != $key</code> it echoes nothing.  I've tried to add an <code>else</code> statement after the <code>if</code> statement except it prints it tens of times.</p>
  
  <p>How can I achieve this functionality?  I want it to print <code>$item['status']</code> if <code>$item['status'] != $key</code></p>
  
  <p>Help is appreciated.</p>
  
  <p>Thanks.</p>