To modify an attribute with a single value:
$entry[mail] = "[email protected]";
$results = ldap_mod_add($ldapConnID,$dn, $entry);
To modify an attribute with multiple values:
$entry[mail][] = "[email protected]";
$entry[mail][] = "[email protected]";
$results = ldap_mod_add($ldapConnID,$dn, $entry);
To modify multiple attributes
$entry[mail][] = "[email protected]";
$entry[mail][] = "[email protected]";
$entry[c] = "US";
$results = ldap_mod_add($ldapConnID,$dn, $entry);