Location: PHPKode > scripts > QXML > qxml/sample4.php
<?php

include_once("QXml.class.php");
include_once("QWhoIsIP.class.php");

$array = array("213.217.37.242", "83.98.158.11", "12.0.0.0");

$whois = new QWhoIsIP($array);
$ipinfo = $whois->getResult();

$xml = new QXML;
$xml->toXML($ipinfo);

$object = $xml->asObject();

print $object->ip->addresses[0]->descr[0];
print "<hr/>";
print "<pre>";
print_r($object);
print "</pre>";

?>
Return current item: QXML