Ldap_get_attributes
Gets the properties of the returned data.
Syntax: array ldap_get_attributes (int handle, int result_entry_identifier);
return value: Array
Function type: http://www.aliyun.com/zixun/aggregation/32416.html "> network system
Content Description
This function is used to obtain properties for all resources in LDAP. Parameter handle to open LDAP 5643.html "> code. Parameter result_entry_identifier will be followed by Ldap_next_attribute (). The return value is an array of data, and the elements of the arrays are from zero to the value of the property. For example
return_value["Count": Number of properties
RETURN_VALUE[0]: First property
Return_value[n]: N Properties
return_value["Attribute" ["Count"]: Number of property values
return_value["attribute"][0]: First property value
return_value["attribute"][i]: i+1 value
Usage examples
The following example is a fragment of the program
<?php
$entry = Ldap_first_entry ($ds, $SR);
$attrs = Ldap_get_attributes ($ds, $entry);
Echo $attrs [Count]. The Pen property data is as follows: <p>\n;
For ($i =0 $i < $attrs [Count]; $i + +) {
echo $attrs [$i]. <br> ";
}
?>
Reference
Ldap_first_attribute () Ldap_next_attribute ()