语法错误意外T_CONSTANT_ENCAPSED_STRING [英] Syntax error unexpected T_CONSTANT_ENCAPSED_STRING

查看:138
本文介绍了语法错误意外T_CONSTANT_ENCAPSED_STRING的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此行$this->email->subject($this->core_model->companyDetails()->coreCompanyName 'User Registration Confirmation');上收到以下错误syntax error, unexpected T_CONSTANT_ENCAPSED_STRING,我对'' and ""错误吗?我还用了$ data作为名称,可以将其包含在主题中而不是模型调用中吗?

I am getting the following error syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on this line $this->email->subject($this->core_model->companyDetails()->coreCompanyName 'User Registration Confirmation'); have I make a mistake with the '' and ""? I have also past the name as $data can I include this in the subject instead of the model call?

推荐答案

您可能忘记了逗号:试试看:

You probably forgot a comma: Try this:

$this->email->subject($this->core_model->companyDetails()->coreCompanyName, 'User Registration Confirmation');

代替

$this->email->subject($this->core_model->companyDetails()->coreCompanyName 'User Registration Confirmation');

这篇关于语法错误意外T_CONSTANT_ENCAPSED_STRING的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆