I am new to PHP and I want to concatenate a string with a variable without any space. I am using a variable $var and a string which is given below.
$var
Use . for concatenations:
.
$var2 = "Name\\branch\\".$var;
Refer to the PHP manual.