The code below didn't concat the strings for me, how come ?
$test = $this->address . $this->url;
echo $test; // prints the content of $this->address only
But this code works:
$begin = $this->address;
$end = $this->url;
$test = $begin.$end;
echo $test; // prints the concatenation
What am I missing?
This is totally valid code.
echo 'value of url: '.$this->url;
when you a line before you try to concatenate the two strings. It must be definetly empty. If it's not empty try a concatenation like this:
$test = '' . $this->address . $this->url;
it might be the case that the variable is empty