getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_list_get_bindataGet a bindata value from a list.


int php_getdns_list_get_bindata ( int $list , int $index , string &$value )

This function gets a bindata value from a list. The list type is used to manage heterogeneous lists of objects consisting of bindata, dictionaries, lists, and integers.



The previously created list that is to be used with this request.


The numeric index (0 based) of the item in the list to be retrieved.


The bindata value to be returned. The character string can be converted into an associative array of elements using the PHP unpack() function. 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