略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: vpopmail_alias_get_all

2024-04-28

vpopmail_alias_get_all

(PHP 4 >= 4.0.7, PECL vpopmail >= 0.2)

vpopmail_alias_get_allGet all lines of an alias for a domain

说明

vpopmail_alias_get_all ( string $domain ) : array
Warning

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。

Warning

本函数还未编写文档,仅有参数列表。

add a note add a note

User Contributed Notes 1 note

up
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

官方地址:https://www.php.net/manual/en/function.vpopmail-alias-get-all.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3