我可能在这段代码中遗漏了一些东西,似乎是某种循环问题,这是代码,我不知道发生了什么:
function clearBoard() {
//initialize board with a . in each cell
global $board, $boardData;
for ($row = 0; $row < $boardData["height"]; $row++) {
for ($col = 0; $col < $boardData["width"]; $col++) {
$board[$row][$col] = ".";
} //end col for loop
} //end row for loop
} //end clearBoard
非常感谢
亚历克斯