note 116591 modified in function.ldap-mod-del by salathe
| From: | salathe@php.net | Date: | Fri, 06 Feb 2015 13:16:05 +0000 |
| Subject: | note 116591 modified in function.ldap-mod-del by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-201628@lists.php.net to get a copy of this message | ||
To remove all of a particular attribute, feed it an empty array.
For example, to remove all members from a group:
<?php
ldap_mod_del($ldapconn,$groupDN,array("member" => array()));
?>
--was--
To remove all of a particular attribute, feed it an empty array.
For example, to remove all members from a group:
ldap_mod_del($ldapconn,$groupDN,array("member" => array()));
http://php.net/manual/en/function.ldap-mod-del.php