Escape quotes in a variable with PHP

后端 未结 7 540
温柔的废话
温柔的废话 2021-01-12 03:16

I use this code to genefate html

echo \"\";

Everything would be OK unles

7条回答
  •  鱼传尺愫
    2021-01-12 03:31

    There are a couple of functions that could be used:

    They produce the following:

    string test"
    string test\"
    

提交回复
热议问题