php8.5
Home/ Manual/ imap / functions/ imap_getacl

imap_getacl

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Gets the ACL for a given mailbox

Description

imap_getacl(IMAP\Connection $imap, string $mailbox): array|false

Gets the ACL for a given mailbox.

Parameters

mailbox

The mailbox name, see imap_open() for more information

Insecure

Return Values

Returns an associative array of "folder" => "acl" pairs, Falseforfailure.

Changelog

VersionDescription

Examples

imap_getacl() example

php
<?php

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

?>

The above example will output something similar to:

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

Notes

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

See Also

Source: reference/imap/functions/imap-getacl.xml · from the official PHP manual (php/doc-en)