#!/usr/bin/php whois($d); if (is_array($srv)) { foreach($srv as $s) { echo " Nameserver: $s\n"; } } else { echo " No nameserver found !\n"; } } ?>