We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This is an Output Filter for XML strings.
Use it with DonDominioResponse, via the output() method:
DonDominioResponse
output()
$options = array(); $data = $response->output('XML', $options);
PHP:
$dondominio = new DonDominio(array( 'apiuser' => '00000-XXX', 'apipasswd' => 'XXXXXXXXXXXX' )); $domainCheck = $dondominio->domain_check('example.com'); $xml = $domainCheck->output('XML', array('pretty'=>true)); echo $xml;
Output:
<?xml version="1.0"?> <data> <domains> <0> <name>default.com</name> <punycode>default.com</punycode> <tld>com</tld> <available/> <premium/> <price>9.95</price> <currency>EUR</currency> </0> </domains> </data>
See also