(PECL getdns >= 0.10.0)
php_getdns_list_set_bindata — Set a bindata value in a list.
$list
, int $index
, string $value
)This function sets a bindata value in a list. The list type is used to manage heterogeneous lists of objects consisting of bindata, dictionaries, lists, and integers.
list
The previously created list that is to be used with this request.
index
The numeric index (0 based) whose associated value is to be set. If the index exists in the list the value associated with that index is replaced. If the index does not exist in the list a new item is added to the list at the specified index.
value
The string of binary data to be set. The PHP pack() function can be used to create a string of binary data.
This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.