0
1
idizian db
The code creates a for loop that iterates through the $_SESSION["tauler"] array. For each entry in the array, it assigns the value "0" to the element at position $i and position $j. It then sets the value of $_SESSION["guanyador"] to false and $_SESSION["jugador"] to "1". Finally, it sets the value of $_SESSION["empat"] to false.
for ($i = 0; $i < count($_SESSION["tauler"]); $i++) {
for ($j = 0; $j < count($_SESSION["tauler"][0]); $j++) {
$_SESSION["tauler"][$i][$j] = "0";
}
}
$_SESSION["guanyador"] = false;
$_SESSION["jugador"] = "1";
$_SESSION["empat"] = false;