getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_dict_get_data_typeGet the data type of an element from a dictionary.


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

This function gets the data type of an element from 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 associated data type is to be returned.


The data type of the named dictionary element. Valid values include constants t_bindata, t_dict, t_int, and t_list. 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