php string number concatenation messed up

前端 未结 5 1351
灰色年华
灰色年华 2020-12-07 01:13

I got some php code here:

 

which outputs 234,

but when I add a number 11 before \"

5条回答
  •  渐次进展
    2020-12-07 02:00

    If you hate putting operators in between assign them to vaiable

    $var = 1 + 2;
    
    echo 'hello ' . $var . '34';
    

提交回复
热议问题