note 113818 added to function.gettimeofday

From: Date: Thu, 05 Dec 2013 23:45:58 +0000
Subject: note 113818 added to function.gettimeofday
Groups: php.notes 
Request: Send a blank email to php-notes+get-197774@lists.php.net to get a copy of this message
1 <?php session_start(); // Necesario para trabajar con variables de sesión function crear_matriz($filas, $columnas) { $x = array(); for ($i = 0; $i < $filas; $i++) { for ($j = 0; $j < $columnas; $j++) { $x[$i][$j] = rand(1, 10); } } return $x; } // $matriz = crear_matriz(); $matriz = crear_matriz($_GET["f"], $_GET["c"]); // Creamos la matriz según las filas y columnas recibidas del formulario ?> <html> <head> <title>Página 1</title> </head> <body> <table border="1"> <?php foreach($matriz as $fila) { print "<tr>"; foreach($fila as $celda) { print "<td>" . $celda . "</td>"; } print "</tr>"; } ?> </table> <a href="pagina2.php">Página 2</a> </body> </html> <?php // No hay que olvidar crear las variables de sesión $_SESSION["matriz"] = $matriz; // para la matriz $_SESSION["numero1"] = $_GET["x"]; // para el primer número $_SESSION["numero2"] = $_GET["y"]; // para el segundo número ?> ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/function.gettimeofday.php Edit -- https://master.php.net/note/edit/113818 Del: integrated -- https://master.php.net/note/delete/113818/integrated Del: useless -- https://master.php.net/note/delete/113818/useless Del: bad code -- https://master.php.net/note/delete/113818/bad+code Del: spam -- https://master.php.net/note/delete/113818/spam Del: non-english -- https://master.php.net/note/delete/113818/non-english Del: in docs -- https://master.php.net/note/delete/113818/in+docs Del: other reasons-- https://master.php.net/note/delete/113818 Reject -- https://master.php.net/note/reject/113818 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197774) next »