September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool ldap_mod_del(resource connectionID, string DN, array entry)
| connectionID | Connection ID |
| DN | Distinguished name of the entry to be modified |
| entry | Array of the attribute information to be deleted |
Deletes attributes from an entry.
Returns:
TRUE on success; FALSE on error
Description:
This function is used to delete a specific attribute from an entry.
Availability:
UNIX/Linux, Windows
Version:
3.0.8+, 4.0b2+
Example:
//removing the matching attribute $attr["mail"] = "jdoe2@foo.com";
$return = ldap_mod_del($ldapconn, "uid=jdoe,ou=People,dc=foo,dc=com", $attr);
if (TRUE === $result) {
echo "The attribute was deleted.";
} else {
echo "The attribute could not be deleted.";
}
|
Read now
Unlock full access