note 14202 added to function.ldap-mod-del.php

From: Date: Sun, 22 Jul 2001 09:05:19 +0000
Subject: note 14202 added to function.ldap-mod-del.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15653@lists.php.net to get a copy of this message
<pre> uid: testuser mail: testuser@test.net mail: testuser@somewhere.com </pre> How to remove the values of mail so that only the second value for mail exists: <pre> $entry["mail"] = "testuser@test.net"; $result = ldap_mod_del($connID, $dn, $entry); </pre> if you want to remove all instances of an attribute..... ==> <pre> $entry["mail"][0] = "testuser@test.net"; $entry["mail"][1] = "testuser@somewhere.net"; $result = ldap_mod_del($connID, $dn, $entry); </pre> are not? http://www.php.net/manual/en/function.ldap-mod-del.php

« previous php.notes (#15653) next »