To remove all instances of an attribute you can use ldap_modify with an empty value for that attribute.
$entry["mail"] = "";
$result = ldap_modify($connID, $dn, $entry);
To remove all instances of an attribute you can use ldap_modify with an empty value for that attribute.
$entry["mail"] = "";
$result = ldap_modify($connID, $dn, $entry);