note 26849 added to function.ldap-sort
| From: | sean dot ogrady at sheridanc dot on dot ca | Date: | Thu, 14 Nov 2002 21:04:39 +0000 |
| Subject: | note 26849 added to function.ldap-sort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39502@lists.php.net to get a copy of this message | ||
The following is a working example of how to use the ldap_sort function ...
$search_return = ldap_search($ldap_connection,$ldap_base,$search_filter);
ldap_sort = ($ldap_connection,$search_return,"givenname");
$entries = ldap_get_entries($ldap_connection,$search_return);
This will take the returned search sort it by the "givenname" attribute. It has to be done
BEFORE you call ldap_get_entries.
--
http://www.php.net/manual/en/function.ldap-sort.php
http://master.php.net/manage/user-notes.php?action=edit+26849
http://master.php.net/manage/user-notes.php?action=delete+26849
http://master.php.net/manage/user-notes.php?action=reject+26849