Jump to content

itiswutitis

Members
  • Posts

    1
  • Joined

  • Last visited

itiswutitis's Achievements

Newbie

Newbie (1/7)

0

Reputation

  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...