(PECL getdns >= 0.10.0)
php_getdns_util_convert_dict — Convert a getdns dictionary to a PHP associative array.
$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.
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.
This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.