小编Chr*_*ine的帖子

尝试使用echo逗号而不是字符串连接

我不知道我在做什么错,但是我遇到了解析错误:“ 解析错误:语法错误,意外的','在...中

$msg= 'This is ', htmlentities($from, ENT_QUOTES, 'UTF-8'),' and ', htmlentities($to, ENT_QUOTES, 'UTF-8'),' dates statistic ';
echo $msg;
Run Code Online (Sandbox Code Playgroud)

你能帮助我吗?我不想使用串联,因为速度较慢。

php concatenation

5
推荐指数
0
解决办法
154
查看次数

标签 统计

concatenation ×1

php ×1