getdns Functions
PHP Manual

php_getdns_util_convert_dict

(PECL getdns >= 0.10.0)

php_getdns_util_convert_dictConvert a getdns dictionary to a PHP associative array.

Description

int php_getdns_util_convert_dict ( int $dict , array &$phpArray )

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

Parameters

dict

The getdns dictionary to be converted.

phpArray

The PHP array to receive the converted dictionary. 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