Hey guys,
I am wanting to find to see if a variable is in the array:
Here is my code:
$domainlist = array(".com.au",".com",".co.nz",".net.au",".net",".net.nz",".org.au",".org",".org.nz");
$serverlist = array(
".co.nz=whois.srs.net.nz|220 Available",
".com=whois.crsnic.net|No match for",
".net=whois.crsnic.net|No match for",
".org=whois.publicinterestregistry.net|NOT FOUND",
".com.au=whois.aunic.net|No Data Found",
".net.au=whois.aunic.net|No Data Found",
".org.au=whois.aunic.net|No Data Found",
);
foreach ($serverlist as $item) {
$server_un = explode("=", $item);
print"<pre>";
print_r($server_un);
print"</pre>";
if (strstr($server_un, $tld)) {
print 1;
}
}
Could you guys please tell me how i could get the server and the server data (after the |) to two separate variables 1 called (server) and other called (Server Data)
Thanks,
Marais