PHP: ldap_first_attribute - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ldap_first_entry ldap_explode_dn

Last updated: Fri, 26 Jan 2007

view this page in

# ldap_first_attribute

(PHP 3, PHP 4, PHP 5)

ldap_first_attribute -- Return first attribute

## Description

string ldap_first_attribute ( resource link_identifier, resource result_entry_identifier, int &ber_identifier )

Returns the first attribute in the entry on success and `FALSE` on error.

Similar to reading entries, attributes are also read one by one from a particular entry. ldap_first_attribute() returns the first attribute in the entry pointed by the `result_entry_identifier`. Remaining attributes are retrieved by calling ldap_next_attribute() successively. `ber_identifier` is the identifier to internal memory location pointer. It is passed by reference. The same `ber_identifier` is passed to the ldap_next_attribute() function, which modifies that pointer.

See also ldap_get_attributes()

add a note User Contributed Notes
ldap_first_attribute
There are no user contributed notes for this page.
ldap_first_entry ldap_explode_dn

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST