<? $kacfor = 2; foreach($a as $b) if ($kacfor == 2) foreach($b as $c) else echo "yapılacak işlemler"; ?>