title: PHP Count Array Elements
body: <p>hi can someone explain why this would return "An array consists of 0 elements." :</p>
  
  <pre><code>$arr = array(1,3,5); 
  $count = count($arr); 
  if ($count = 0) { echo "An array is empty."; } else { echo "An array has $count elements."; }
  </code></pre>
  
  <p>By the way, this is one a quiz i'm working through and i'm not sure why this is the correct answer?</p>