title: How to check whether an array is empty using PHP?
body: <p><code>players</code> will either be empty or a comma separated list (or a single value). What is the easiest way to check if it's empty? I'm assuming I can do so as soon as I fetch the <code>$gameresult</code> array into <code>$gamerow</code>? In this case it would probably be more efficient to skip exploding the <code>$playerlist</code> if it's empty, but for the sake of argument, how would I check if an array is empty as well?</p>
  
  <pre><code>$gamerow = mysql_fetch_array($gameresult);
  $playerlist = explode(",", $gamerow['players']);
  </code></pre>