* @copyright 2021 Bartolomé Sintes Marco * @license http://www.gnu.org/licenses/agpl.txt AGPL 3 or later * @version 2021-11-23 * @link https://www.mclibre.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ // Se accede a la sesión session_name("minijuegos-3-3"); session_start(); if (!isset($_SESSION["nCartas"])) { $_SESSION["nCartas"] = 5; $_SESSION["cartas"] = range(1, $_SESSION["nCartas"]); shuffle($_SESSION["cartas"]); } ?> Quita cartas en orden. Minijuegos (3). Sesiones. Ejercicios. PHP. Bartolomé Sintes Marco. www.mclibre.org

Quita cartas en orden

Haga clic en las cartas en orden numérico creciente:

\n"; foreach ($_SESSION["cartas"] as $carta) { print " \n"; } print "