Skip to content

Array Output Filter

Miky edited this page Sep 10, 2015 · 2 revisions

This is an Output Filter for PHP Arrays.

Usage

Use it with DonDominioResponse, via the output() method:

$options = array();

$data = $response->output('Array', $options);

Options

The Array Output Filter has no options.

Example output

PHP:

$dondominio = new DonDominio(array(
	'apiuser' => '00000-XXX',
	'apipasswd' => 'XXXXXXXXXXXX'
));

$domainCheck = $dondominio->domain_check('example.com');

$array = $domainCheck->output('Array', array('pretty'=>true));

print_r($array);

Output:

Array
(
    [domains] => Array
        (
            [0] => Array
                (
                    [name] => default.com
                    [punycode] => default.com
                    [tld] => com
                    [available] => 
                    [premium] => 
                    [price] => 9.95
                    [currency] => EUR
                )

        )

)

Clone this wiki locally