getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_util_convert_listConvert a getdns list to a PHP indexed array.


int php_getdns_util_convert_list ( int $list , array &$phpArray )

This function converts a getdns list to a PHP indexed array. The indexes of the list elements are used to create the array keys and the values of the list elements are copied and converted to appropriate PHP data types. Sub-dictionaries and sub-lists will be also be converted to arrays.



The getdns list to be converted.


The PHP array to receive the converted list. Note that this argument is passed by reference and any existing value will be overwritten.

Return Values

This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.

getdns Functions
PHP Manual