title: php check at least two values greater than 0 in array
body: <p>I have a PHP array.</p>
  
  <p>Let's say </p>
  
  <pre><code>$array = array(20,1,0, 0, 0,0,8);
  </code></pre>
  
  <p>I need to check whether at least tow values available greater than 0 in the array. As an example. </p>
  
  <pre><code>$array = array(20,1,0, 0, 0,0,8); 
  // True - Above array has at least two values which is &gt; 0
  
  $array = array(0,9,0, 0, 0,0,0); 
  // False- Above array doesn't have at least two values which is &gt; 0
  </code></pre>
  
  <p>I would like to know if there any easy way to get this done without looping through the array.</p>
  
  <p>Thank you.</p>