Dreamscapes/Ldap/Core/Ldap.php
public function modifyBatch($dn, array $entry)
    {
        if (! function_exists('ldap_modify_batch')) {
            // Bail out, can't work our magic!
            trigger_error(
                'ldap_modify_batch() is only available in PHP ~5.4.26 or >=5.5.10',
                E_USER_ERROR
            );
        }

        @ldap_modify_batch($this->resource, $dn, $entry);
        $this->verifyOperation();

        return $this;
    }
public function modifyBatch($dn, array $entry)
    {
        if (! function_exists('ldap_modify_batch')) {
            // Bail out, can't work our magic!
            trigger_error(
                'ldap_modify_batch() is only available in PHP ~5.4.26 or >=5.5.10',
                E_USER_ERROR
            );
        }

        @ldap_modify_batch($this->resource, $dn, $entry);
        $this->verifyOperation();

        return $this;
    }
Modify an existing entry in the LDAP directory

Allows detailed specification of the modifications to perform.

Example:

$modifs = array(
array(
"attrib"  => "telephoneNumber",
"modtype" => Ldap::MODIFY_BATCH_ADD,
"values"  => array("+420 777 111 222")
)
);
$ldap->modifyBatch("cn=Robert Rossmann,dc=example,dc=com", $modifs);

@since  PHP ~5.4.26, >=5.5.10
@param  string $dn    The distinguished name of an LDAP entity
@param  array  $entry Modification specifications
@return self

@see https://wiki.php.net/rfc/ldap_modify_batch