title: How to explain php empty array greater than zero?
body: <p>When I am trying to determine if an empty array is greater than 0, but returns true.
  why php empty array  greater than 0 ?</p>
  
  <pre><code>$a = [];
  if (is_array($a) &amp;&amp; count($a) &gt; 0) {
      die('array');
  } elseif ($a &gt; 0) {
      die('ok');
  }
  </code></pre>
  
  <p>it's output 'ok', Can anyone tell me why this is?</p>