Hi,
<?php
for ($b=1;$b<11;$b++)
{
$a=1;
$c=$a*$b;
echo $b."x".$a."=".$c;
$a++;
}
?>
Fuer zwei Dimensionen brauchst Du auch entsprechend Schleifen. Teste:
<html>
<head>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="5">
<?php
for ($i = 1; $i < 11; $i++) {
echo "\n<tr>";
for ($j = 1; $j < 11; $j++) {
$result = $i * $j;
echo "\n<td>" . $result . "</td>";
}
echo "\n</tr>";
}
?>
</table>
</body>
</html>
Gruesse Joachim