getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_dict_util_get_stringGet a bindata string value from a dictionary.


int php_getdns_dict_util_get_string ( int $dict , string $name , string &$value )

This function gets the character string value of the bindata associated with a given name in a dictionary.



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


The name whose associated bindata character string value is to be returned.


The character string value of the bindata associated with the given name. Note that this argument is passed by reference and any existing value will be overwritten. NULL is returned if any conversion or memory allocation errors are encountered.

Return Values

This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion. GETDNS_RETURN_GENERIC_ERROR indicates an issue with the value parameter or the data type of the name-value pair.

getdns Functions
PHP Manual