LDAP function library: ldap_get_values

Source: Internet
Author: User
Keywords Ldap_get_values ldap function Library php Chinese function manual
Tags aliyun array content function function library html ldap_get_values mail

Ldap_get_http://www.aliyun.com/zixun/aggregation/9541.html ">values

Gets the full return value.

Syntax: array ldap_get_values (int handle, int result_entry_identifier, string attribute);

return value: Array

Function Type: Network system

Content Description

This function is used to obtain all return data values for LDAP. Parameter handle to open LDAP 5643.html "> code. Parameter attribute has surname and mail two kinds. The return value is an array of data values, such as

return_value["Count": Total number of property values
RETURN_VALUE[0]: First property value
Return_value[i]: I+1 Property value

Usage examples

The following example is a fragment program

?
$values = Ldap_get_values ($ds, $entry, "Mail");
Echo $values [count]. "Pen e-mail address: <p>\n";
For ($i =0 $i < $values [Count]; $i + +) {
echo $values [$i]. <br> ";
}
?>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.