首页 > 解决方案 > 如何在一个数组中组合多个变量

问题描述

    $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);

任何一个都有助于将单个数组转换为多个变量。

标签: phparrays

解决方案


在您的代码中找到您为以下属性分配值的位置

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

推荐阅读