PHP Echo - Escaping quotes

后端 未结 4 1049
不思量自难忘°
不思量自难忘° 2021-01-25 22:46

I was programming something in PHP but since I\'m a newbie I got stuck.

I have no clue how should I escape quotes on the following line. Moreover, I think the PHP tags i

4条回答
  •  孤街浪徒
    2021-01-25 23:22

    I am boot sure what DoNav does but I think you want to have this line instead:

    echo '';
    

    In PHP the \ is the escape character. If you want to escape a " you can write \"

    I hope it was helpful. Good luck

提交回复
热议问题