September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool ldap_mod_replace(resource connectionID, string DN, array entry)
| connectionID | Connection ID |
| DN | Distinguished name of the entry to be added |
| entry | Array of the attribute information to be changed |
Changes attribute values.
Returns:
TRUE on success; FALSE on error
Description:
This function is used to change the attribute values of an entry.
Availability:
UNIX/Linux, Windows
Version:
3.0.8+, 4.0b2+
Example:
// replacing the value of a single attribute $attr["mail"] =
"jdoenew@foo.com";
$result = ldap_mod_replace($ldapconn, "uid=jdoe,ou=People,dc=foo,dc=com",
$attr);
if (TRUE === $result) {
echo "The attribute was replaced.";
} else {
echo "The attribute could not be replaced.";
}
|
Read now
Unlock full access