아래의 코드는 나를 위해 문자열을 연결하지 않았습니까?PHP 문자열 연결
$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
?
는 $ this-> url''에코하려고 비어있는 경우가 있습니다. 이 변수는 첫 번째 경우에 비어있을 수 있습니다! – jbrtrnd
@ JBRTRND-DEV 아니요 비어 있지 않아요. 테스트했습니다. – Alon
변수에 실제로 값이 있는지 확인하려면'strlen()','empty()','isset()' – Vishal