(PECL getdns >= 0.10.0)
php_getdns_util_convert_list — Convert a getdns list to a PHP indexed array.
$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.
list
The getdns list to be converted.
phpArray
The PHP array to receive the converted list. 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.