标签: php hash escaping symbols
如何在PHP中转义哈希符号?
我想做"DELETE FROM [#8:1]",但为了让它发挥作用,我必须做"DELETE FROM [".'#'."8:1]"。虽然它有效但看起来有点笨拙,有没有更好的方法呢?
"DELETE FROM [#8:1]"
"DELETE FROM [".'#'."8:1]"
答案 0 :(得分:3)
使用单引号
'DELETE FROM [#8:1]'