如果您将
database class与
query bindings一起使用,则无需进行任何手动转义:
原文链接:https://www.f2er.com/php/133241.htmlThe secondary benefit of using binds is that the values are automatically escaped,producing safer queries. You don’t have to remember to manually escape data; the engine does it automatically for you.