horst: kleiner fehler ?

Beitrag lesen

<?
// 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";
}
?>

musst du denn unbedingt zweidimenionale arrays benutzen???

horst