Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Kohana 3 のデータベース ライブラリを使用して、PHP で文字列を引用符で囲む必要があります。2.3では、私がしなければならなかったのは$this->db->escape().
$this->db->escape()
3でこれを行うにはどうすればよいですか?ソースを見ているときのようなものを見たのを覚えているようですquote()が、私の人生では、再びそれを見つけることができます.
quote()
Databaseクラスにはメソッドescape()があり ます。こちらをご覧ください。
Database
escape()