(PHP 5, PHP 7, PHP 8)
imap_getacl — Gets the ACL for a given mailbox
Gets the ACL for a given mailbox.
imapПримірник IMAP\Connection.
mailboxThe mailbox name, see imap_open() for more information
Передавати у цей параметр неперевірені дані небезпечно, якщо увімкнено imap.enable_insecure_rsh.
Returns an associative array of "folder" => "acl" pairs, або false в разі помилки.
| Версія | Опис |
|---|---|
| 8.1.0 |
Тепер параметр imap має бути примірником
IMAP\Connection; раніше очікувався дійсний resource
imap.
|
Приклад #1 imap_getacl() example
<?php
print_r(imap_getacl($imap, 'user.joecool'));
?>Поданий вище приклад виведе щось схоже на:
Array
(
[asubfolder] => lrswipcda
[anothersubfolder] => lrswipcda
)
This function is currently only available to users of the c-client2000 or greater library.