下面的代码没有为我连接字符串,怎么会?
$test = $this->address . $this->url;
echo $test; // prints the content of $this->address only
但是这段代码有效:
$begin = $this->address;
$end = $this->url;
$test = $begin.$end;
echo $test; // prints the concatenation
我错过了什么?