$properties) { if(strpos($id, "break") === FALSE) $totalPonies++; } $totalFusions = $totalPonies * $totalPonies; $i = 0; foreach($ponies as $id => $properties) { if(strpos($id, "break") === FALSE) { foreach($ponies as $idSecond => $propertiesSecond) { if(strpos($idSecond, "break") === FALSE) { $i++; $percentage = sprintf("%3d", floor(($i / $totalFusions) * 100)); echo "($percentage%) [$i/$totalFusions] $id + $idSecond\n"; makeFusion($id, $idSecond, TRUE); sleep(1); } } } } ?>