PHP Conference Japan 2024

ldap_mod_replace_ext

(PHP 7 >= 7.3.0,PHP 8)

ldap_mod_replace_ext以新值取代屬性值

描述

ldap_mod_replace_ext(
    LDAP\Connection $ldap,
    string $dn,
    array $entry,
    ?array $controls = null
):LDAP\Result|false

ldap_mod_replace() 的功能相同,但會傳回 LDAP\Result 實例,以便使用 ldap_parse_result() 進行解析。

參數

請參閱 ldap_mod_replace()

傳回值

傳回 LDAP\Result 實例,失敗時傳回 false

變更日誌

版本 描述
8.1.0 ldap 參數現在預期為 LDAP\Connection 實例;先前預期為有效的 ldap link 資源
8.1.0 現在傳回 LDAP\Result 實例;先前傳回 資源
8.0.0 controls 現在可為 null;先前預設為 []
7.3.0 新增對 controls 的支援

參見

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top