php8.5
Home/ Manual/ ldap / functions/ ldap_mod_add

ldap_mod_add

PHP function Edit on GitHub ✎

(PHP 4, PHP 5, PHP 7, PHP 8)

Add attribute values to current attributes

Description

ldap_mod_add(LDAP\Connection $ldap, string $dn, array $entry, array|null $controls = null): bool

Adds one or more attribute values to the specified dn. To add a whole new object see ldap_add() function.

Parameters

ldap

Ldap

dn

The distinguished name of an LDAP entity.

entry

An associative array listing the attribute values to add. If an attribute was not existing yet it will be added. If an attribute is existing you can only add values to it if it supports multiple values.

controls

Array of LDAP Controls to send with the request.

Return Values

Success

Changelog

VersionDescription
7.3.0Support for controls added

Notes Bin-safe

See Also

Source: reference/ldap/functions/ldap-mod-add.xml · from the official PHP manual (php/doc-en)