String and variable concatenation in php

后端 未结 6 970
自闭症患者
自闭症患者 2021-01-13 07:01

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.

         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 07:54

    this will help u

    $var1 = 'text';
    $var2 = "Name\branch\".$var1;
    

    o/p: Name\branch\text

提交回复
热议问题