getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_dict_set_bindataSet a bindata value in a dictionary.


int php_getdns_dict_set_bindata ( int $dict , string $name , string $value )

This function sets a bindata value in a dictionary. The dictionary type is used to manage name/value pairs in which the names are strings and the data types of the values are heterogeneous and include bindata, dictionaries, lists, and integers.



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


The name whose value is to be set.


The string of binary data to be associated with the given name. The PHP pack() function can be used to create a string of binary data.

Return Values

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

getdns Functions
PHP Manual