Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/05/2013, 18:41
danicasas
 
Fecha de Ingreso: abril-2012
Mensajes: 124
Antigüedad: 12 años
Puntos: 3
Respuesta: Duda Ejercicio PHP

Código PHP:
function fun2($filas,$colum)
{
$a = array();
$b 0;
echo (
"<table border='1'>");

for (
$i=0;$i<$filas;$i++)
{
echo(
"<tr>");
for(
$j=0;$j<$colum;$j++)
{
$a[$i][$j]=++$b;
echo(
"<td width='30px'>".$a[$i][$j]."</td>");
}
}

echo(
"</table>");
}
fun2(10,10);