如何在单个数组中组合多个变量

时间:2019-05-24 05:34:58

标签: php arrays

    $arrray = array(
        $this->_SmailerTyle => "PHPMailer",
        $this->_SsendMail   => "smtp",
        $this->from         => "arun.r@infinitisoftware.net",
        $this->to           => "example@gmail.com",
        $this->subject      => "This is example subject",
        $this->message      => "This is example message",
        );
        print_r($arrray);

任何人都可以将单个数组转换为多个变量。

1 个答案:

答案 0 :(得分:2)

在代码中找到为以下属性分配值的地方

$this->_SmailerTyle
$this->_SsendMail
$this->from
$this->to
$this->subject
$this->message