<?
// This is a small script that shows how to use an multiple array
for($x = 0;$x < 10;$x++){
for($y = 0;$y < 10;$y++){
$mat[$x][$y] = "$x,$y";
}
}
for($x = 0;$x < count($mat);$x++){
for($y = 0;$y < count($mat[$x]);$y++){ // HIER DAS IST WICHTIG FÜR DICH
echo "mat[$x][$y]: " .
$mat[$x][$y] . " ";
}
echo "\n";
}
?>
ooh je - soviele x und y`s - da blickt man kaum durch :)
musst du denn unbedingt zweidimenionale arrays benutzen???
ja, schon, dass muss leider sein.
kannst du mir das hier oben evtl. mal erleutern ?
Mit freundlichen Grüssen
Michael Wölk