Which is the best method to perform string concatenation in PHP?

前端 未结 4 1502
粉色の甜心
粉色の甜心 2021-01-19 03:26

In php we can append strings in many ways.

            Method 1
            ----------------------------
            $sql  = \"SELECT field1, \";
                    


        
4条回答
  •  借酒劲吻你
    2021-01-19 03:48

    As far as I'm concerned there is no 'best method'.
    Rule of thumb is choose one you prefer and stick to it and be consistent across the project.

提交回复
热议问题