[array|null$controls = null]
Modifies an existing entry in the LDAP directory. Allows detailed specification of the modifications to perform.
An LDAP resource, returned by ldap_connect.
The distinguished name of an LDAP entity.
An array that specifies the modifications to make. Each entry in this array is an associative array with two or three keys: attrib maps to the name of the attribute to modify, modtype maps to the type of modification to perform, and (depending on the type of modification) values maps to an array of attribute values relevant to the modification.
Possible values for modtype include:
Each value specified through values is added (as an additional value) to the attribute named by attrib.
Each value specified through values is removed from the attribute named by attrib. Any value of the attribute not contained in the values array will remain untouched.
All values are removed from the attribute named by attrib. A values entry must not be provided.
All current values of the attribute named by attrib are replaced with the values specified through values.
Note that any value for attrib must be a string, any value for values must be an array of strings, and any value for modtype must be one of the LDAP_MODIFY_BATCH_* constants listed above.
Array of LDAP Controls to send with the request.
Returns true on success or false on failure.
|8.1.0||The ldap parameter expects an LDAP\Connection instance now; previously, a resource was expected.|
|8.0.0||controls is nullable now; previously, it defaulted to .|
|7.3||Support for controls added|