Jump to content

itiswutitis

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by itiswutitis

  1. When I run the code below, the count function is returning 72. Why is it not returning 64 as I think it should? <?php <$board = array(array('x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'),array('x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'),array('x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'),array('x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'),array('x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'),array('x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'),array('x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'),array('x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'));echo "<pre>";foreach($board as $row){foreach ($row as $piece)echo "$piece ";echo "<br>";}echo "</pre>";echo count($board, 1); ?>
×
×
  • Create New...