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

前端 未结 7 912
没有蜡笔的小新
没有蜡笔的小新 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:35

    Escape the quote using a backslash.

    'hello\'s'
    

    The single quote that appears after the backslash will appear on screen.

提交回复
热议问题