Hosts that are up\n"; print "
\n"; $counter = 0; foreach ($ip[0] as $i) { print "$i " . $name["0"]["$counter"] . "\n"; $counter++; } print "