neteja

    0

    1

    izian 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;
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.