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);