note 41763 added to function.ldap-get-entries

From: Date: Wed, 21 Apr 2004 19:57:23 +0000
Subject: note 41763 added to function.ldap-get-entries
Groups: php.notes 
Request: Send a blank email to php-notes+get-68476@lists.php.net to get a copy of this message
If you loop over the entries, like $entries = ldap_get_entries( $ds, $sr ); watch out! you have to check with is_null the last entry because you will get one entry more than the search found, but the last one will be null so you are safe if you do: for ( $i = 0; $i < count( $entries ); $i++ ) { if ( is_null( $entries[ $i ] ) ) continue; ... } ---- Manual Page -- http://www.php.net/manual/en/function.ldap-get-entries.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41763 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41763&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41763&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68476) next »