array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.ldap-first-entry.php', 1 => 'ldap_first_entry', ), 'up' => array ( 0 => 'ref.ldap.php', 1 => 'Funções do LDAP', ), 'prev' => array ( 0 => 'function.ldap-first-attribute.php', 1 => 'ldap_first_attribute', ), 'next' => array ( 0 => 'function.ldap-first-reference.php', 1 => 'ldap_first_reference', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ldap/functions/ldap-first-entry.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
ldap_first_entry — Return first result id
Returns the entry identifier for first entry in the result. This entry identifier is then supplied to ldap_next_entry() routine to get successive entries from the result.
Entries in the LDAP result are read sequentially using the ldap_first_entry() and ldap_next_entry() functions.
ldap
Uma instância de LDAP\Connection, retornada por ldap_connect().
result
Uma instância de LDAP\Result, retornada por ldap_list() ou ldap_search().
Returns an LDAP\ResultEntry instance, ou false
em caso de falha.
Versão | Descrição |
---|---|
8.1.0 |
O parâmetro ldap agora espera uma instância de LDAP\Connection;
anteriormente, um resource ldap link válido era esperado.
|
8.1.0 |
O parâmetro result agora espera uma instância de LDAP\Result;
anteriormente, um resource ldap result válido era esperado.
|
8.1.0 | Agora retorna uma instância de LDAP\ResultEntry; anteriormente, um resource era retornado. |