- PHP 手册
- 函数参考
- 邮件相关扩展
- vpopmail
- vpopmail 函数
vpopmail_alias_get_all
(PHP 4 >= 4.0.7, PECL vpopmail >= 0.2)
vpopmail_alias_get_all — Get all lines of an alias for a domain
说明
vpopmail_alias_get_all ( string$domain
) : array
Warning此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。
Warning本函数还未编写文档,仅有参数列表。
User Contributed Notes 1 note
up down 0 phpnet at syberisle dot net ¶16 years ago
The $key part gives us the alias
i.e. - for .qmail-draxon the alias will hold "draxon"
the $value part gives us another array that houses the content of the .qmail file one array entry per line.
note: even if there is only 1 entry in the .qmail file it will still return an array
$aliases = vpopmail_alias_get_all("syberisle.net");
foreach($aliases AS $key => $value) {
echo "$key\n";
foreach($value AS $vkey => $alias) {
echo "\t=> $alias\n";
}
}
Enjoy,
Dave L
add a note
官方地址:https://www.php.net/manual/en/function.vpopmail-alias-get-all.php