src/Classes/AdldapGroups.php
public function removeContact($group, $contactName)
    {
        // Find the parent dn
        $groupDn = $this->dn($group);

        $contactDn = $this->adldap->contact()->dn($contactName);

        if (is_string($groupDn) && is_string($contactDn)) {
            $del = [];
            $del['member'] = $contactDn;

            return $this->connection->modDelete($groupDn, $del);
        }

        return false;
    }
public function removeContact($group, $contactName)
    {
        // Find the parent dn
        $groupDn = $this->dn($group);

        $contactDn = $this->adldap->contact()->dn($contactName);

        if (is_string($groupDn) && is_string($contactDn)) {
            $del = [];
            $del['member'] = $contactDn;

            return $this->connection->modDelete($groupDn, $del);
        }

        return false;
    }
public function removeContact ( $ group , $ contactName ) { // Find the parent dn $ groupDn = $ this -> dn ( $ group ) ; $ contactDn = $ this -> adldap -> contact ( ) -> dn ( $ contactName ) ; if ( is_string ( $ groupDn ) && is_string ( $ contactDn ) ) { $ del = [ ] ; $ del [ 'member' ] = $ contactDn ; return $ this -> connection -> modDelete ( $ groupDn , $ del ) ; } return false ; }
Remove a contact from a group.

@param string $group       The group to remove the contact from
@param string $contactName The contact to remove

@return bool
Remove a contact from a group .