imap_getacl

Gets the ACL for a given mailbox

&reftitle.description; ``array``false```imap_getacl` `IMAP\Connection` `imap` `string` `mailbox`

Gets the ACL for a given mailbox.

&reftitle.parameters;

&imap.imap-parameter.imap;

`mailbox`

- The mailbox name, see `imap_open` for more information

  &imap.mailboxname.insecure;
&reftitle.returnvalues;

Returns an associative array of "folder" => "acl" pairs, &return.falseforfailure;.

&reftitle.changelog;

&Version; | &Description;
&imap.changelog.imap-param;

&reftitle.examples;

### `imap_getacl` example

    <?php

    print_r(imap_getacl($imap, 'user.joecool'));

    ?>

&example.outputs.similar;

    Array
    (
        [asubfolder] => lrswipcda
        [anothersubfolder] => lrswipcda
    )

&reftitle.notes;

This function is currently only available to users of the c-client2000 or greater library.

&reftitle.seealso;

- `imap_setacl`