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

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

In php we can append strings in many ways.

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


        
4条回答
  •  臣服心动
    2021-01-19 03:51

    None is better. Just select one and stick to it, PHP_CodeSniffer can be used to automate a check on your code style.

提交回复
热议问题