I have the following array:
$extensions = array(
'.info' => array('whois.afilias.net','NOT FOUND'),
'.com' => array('whois.verisign-grs.com','No match for'),
'.net' => array('whois.crsnic.net','No match for'),
'.co.uk' => array('whois.nic.uk','No match'),
'.nl' => array('whois.domain-registry.nl','is free'),
);
How do I echo the ‘.com’ or ‘.co.uk’ (not the array that is inside the ‘.com’ or ‘.co.uk’, but just the TLD) without a foreach loop. echo $extensions['.com']; doesn’t work, because that gives back: Array
EDIT: I want to select on the key itself not on the array number. Is this possible?
Thanks in advance!
1 Answer