= $tmp) { $kaisuu++; $pos = $tmp; } if ($x[0][0] == $tmp) { $pos = $tmp; $flg = false; echo $kaisuu; } } while ($flg);