Concatenation Operator

后端 未结 4 1366
自闭症患者
自闭症患者 2021-01-22 14:07

This might be a silly question but it struck me, and here i ask.



        
4条回答
  •  梦毁少年i
    2021-01-22 14:56

    In some cases your write less with:

    $someLongVarName ="Hi";
    $someLongVarName .=" there";
    

    VS

    $someLongVarName ="Hi";
    $someLongVarName = "$someLongVarName there";
    

提交回复
热议问题