0

我在这里碰壁了。我正在使用 Paypal Parallel Payment API (PHP),我想用存储$receiverEmailArrayparallel.php$_SESSION['owneremails']

$receiverEmailArray = array(
        ''.$_SESSION['owneremails'].'',
        'sales@mydomain.com'
        );

我希望所有者的电子邮件地址填充在里面$receiverEmailArraysales@mydomain是一个常数),最后看起来像这样:

$receiverEmailArray = array(
        'owneremail1@gmail.com', 'owneremail2@gmail.com', 'owneremail3@gmail.com',
        'sales@mydomain.com'
        );
4

1 回答 1

0

假设$_SESSION['owneremails']是一组电子邮件地址,您只需添加您的固定电子邮件地址:

$_SESSION['owneremails'][] = 'sales@mydomain.com';
$receiverEmailArray = $_SESSION['owneremails'];

如果$_SESSION['owneremails']不是数组,您可以编辑您的问题以显示内容吗?

于 2012-07-31T02:02:40.337 回答