php - 如何在一个数组中组合多个变量
问题描述
$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
推荐阅读
- flutter - 如何在图像的透明部分显示在 Flutter 中位于其后面的图像?
- javascript - 如何使用 Asp.Net Core MVC 将订单的总金额发送到 Stripe Api
- azure - 访问令牌提供不同的澳元?
- automated-tests - 使用参数执行功能文件(Cucumber/SpecFlow)?
- mysql - 如何在 Laravel 中获得生日?
- java - 如何通过命令行将参数传递给testng xml
- linux - 使用 linux 终端通过 SSH 连接到 amazon Lightsail 实例
- numpy - 从销售 df.csv 绘制历史数据的问题
- message - SAP ABAP 帮助:用户应根据消息中的设置获取字段名称或标签
- javascript - Javascript:检查类是否因未输入必填字段条目而更改