$arr = array(".co.uk",".com",".net",".me.uk"); echo "Top Level Domains: "; while(list(,$tld)=each($arr)) { echo $tld.", "; } On Sun, 19 Jan 2003, Dave Carrera wrote: > Hi All > I am trying to create a tld lookup script for uk and main us domains. > > I have success by creating multiple function hardcode the whois server > and tld but I would love to be able to make an array of tlds then step > through the array to check availability of domain. > > Example > > $arr = array(‘.co.uk’,’.com’,’.net’,’.me.uk’); > > How do I step though one at a time and give a viewable result? > > I know I have to check the value of the array and assign the relevant > whois server. How do I do that? > > Any help, guidance, code examples will be very much appreciated. > > Thank you in advance as always > > Dave Carrera > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 > > --------------------------------------------------------------------------- Peter Beckman Internet Guy beckman@purplecow.com http://www.purplecow.com/ --------------------------------------------------------------------------- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php