How to use single quote inside an echo which is using single quote

前端 未结 7 888
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 12:04

First of all, i have gone through the related questions.. haven\'t found any answer.. I m using this code to display a message

echo \'Here goes your message wi

7条回答
  •  庸人自扰
    2020-11-28 12:52

    Since the methods from the answers didn't work for my situation I ended up just calling a new echo everytime the type of quote changed through the code and swapped the type of quote to start the echo, it's 2019 now and I don't know about any other solution since I am really new to programming but this worked fine for me, example:

            else {
              echo '  Login do Aluno';
            }

提交回复
热议问题