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
You can use { } to use variable's value in a string.
$result = "Name\Branch\\{$var}";