note 27822 added to function.ldap-sort

From: Date: Thu, 19 Dec 2002 21:58:54 +0000
Subject: note 27822 added to function.ldap-sort
Groups: php.notes 
Request: Send a blank email to php-notes+get-41136@lists.php.net to get a copy of this message
The note from Sean on 14-Nov-2002 was of great help to me but I had to change one line for it to work. In the example below, change the line ... ldap_sort = ($ldap_connection,$search_return,"givenname"); to ldap_sort ($ldap_connection,$search_return,"givenname"); and everything should work fine. Sean's code................. 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+27822 http://master.php.net/manage/user-notes.php?action=delete+27822 http://master.php.net/manage/user-notes.php?action=reject+27822

« previous php.notes (#41136) next »