title: PHP Does if (count($array)) and if ($array) mean the same thing?
body: <p>In PHP, will these always return the same values?</p>
  
  <pre><code>//example 1
  
  $array = array();
  
  if ($array) {
     echo 'the array has items';
  
  }
  
  // example 2
  
  $array = array();
  
  if (count($array)) {
     echo 'the array has items';
  
  }
  </code></pre>
  
  <p>Thank you!</p>