array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.ldap-first-attribute.php', 1 => 'ldap_first_attribute', ), 'up' => array ( 0 => 'ref.ldap.php', 1 => 'LDAP 関数', ), 'prev' => array ( 0 => 'function.ldap-explode-dn.php', 1 => 'ldap_explode_dn', ), 'next' => array ( 0 => 'function.ldap-first-entry.php', 1 => 'ldap_first_entry', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/ldap/functions/ldap-first-attribute.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_attribute — 最初の属性を返す
指定したエントリの最初の属性を取得します。残りの属性は、 ldap_next_attribute() を逐次コールして取得します。
エントリの読み込みと同様、 エントリからの属性の読み込みもひとつづつ行われます。
成功した場合にエントリの最初の属性、エラーの場合に false
を返します。
バージョン | 説明 |
---|---|
8.1.0 |
引数 ldap は、LDAP\Connection
クラスのインスタンスを期待するようになりました。
これより前のバージョンでは、有効な ldap link リソース を期待していました。
|
8.1.0 |
引数 entry は、
LDAP\ResultEntry
クラスのインスタンスを期待するようになりました。
これより前のバージョンでは、有効な ldap result entry リソース を期待していました。
|
8.0.0 |
未使用だった3番目のパラメータ ber_identifier は、
もはや使えなくなりました。
|