繁体   English   中英

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

[英]How to combine multiple variables in a single array

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

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM