Format MySQL code inside PHP string

后端 未结 16 1754
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 00:29

Is there any program IDE or not that can format MySQL code inside PHP string e.g. I use PHPStorm IDE and it cannot do it.

It does that for PHP and MYSQL but not for MYS

16条回答
  •  囚心锁ツ
    2021-02-04 01:18

    If there is no support in all the many IDEs for such a thing, there is a reason in most cases. Please consider prepared statements oder object wrappers for your work. I know both things can't be implemented in every system within a few minutes, but your code will become maintainable.

    In short: IDEs cant correct design errors. They just make them look nice and colored.

提交回复
热议问题