title: If condition that loops through an array
body: <p>I have an array which has several keys, each may be true/false:</p>
  
  <pre><code>$hide[1] = false; 
  $hide[2] = false; 
  $hide[3] = true;
  </code></pre>
  
  <p>I want a <code>&lt;div&gt;</code> block to appear in my HTML if at least one key is set to <code>true</code>:</p>
  
  <pre><code>&lt;?php if ($some_condition_here==true) { ?&gt; 
  &lt;div&gt;show me if at least one value is "true"&lt;/div&gt;
  &lt;?php } else { } ?&gt;
  </code></pre>
  
  <p>What is the best practice to do this, considering that sometimes I don't know in advance how many keys I may have (in this example, 3, though might be more). I can assume that max number will be about 20 though.</p>
  
  <p>I'm not sure how to do this, since I don't know how to use <code>loop</code> with <code>if</code>, and also it needs to stop checking on the first event it finds a <code>true</code>.</p>