标签: php variables
$var1 = "Hello"; $var2 = "There"; $var3 = $var1, $var2; echo $var3, "<br />";
答案 0 :(得分:0)
像这样使用concat:
(或者你可能只是因为,直接位于.左侧而犯了一个拼写错误)
,
.
$var1 = "Hello"; $var2 = "There"; $var3 = $var1 . " " . $var2; echo $var3 . "<br />";
参见进一步参考:
http://php.net/manual/en/language.operators.string.php