imap_getacl
(PHP 5, PHP 7, PHP 8)
imap_getacl — Gets the ACL for a given mailbox
說明
imap_getacl(IMAP\Connection
$imap, string $mailbox): array|falseGets the ACL for a given mailbox.
參數
-
imap -
IMAP\Connection 實例。
-
mailbox -
The mailbox name, see imap_open() for more information
警告Passing untrusted data to this parameter is insecure, unless imap.enable_insecure_rsh is disabled.
返回值
Returns an associative array of "folder" => "acl" pairs, 或者在失敗時返回 false.
更新日誌
| 版本 | 說明 |
|---|---|
| 8.1.0 |
現在 imap 參數接受 IMAP\Connection
實例,之前接受 資源(resource)。
|
範例
示例 #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.