>>18
そのままのロジックだと何か問題が?

$count = 0;
for($i=0; $i<10; $i++) {
for($j=0; $j<10; $j++) {
$count++;
$x[$i][$j] = $count;
}
}

てか、Cって for(int i=0 とかできるんだっけか?