【发布时间】:2017-06-20 19:32:35
【问题描述】:
请帮忙。在重置密码页面上,我收到错误
syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING
我的代码
To reset your password, complete this form: <?php echo URL::to(\'user/reset\', array({$token})); ?>.
如果有帮助,或者在 laravel 中使用相同的代码:
To reset your password, complete this form: {{ URL::to(\'user/reset\', array($token)) }}.
【问题讨论】:
-
你为什么用
\'而不是'来封装字符串?