Escaped Backslash Characters in PHP Single Quoted Strings

前端 未结 2 2061
暗喜
暗喜 2020-12-22 10:34

I took these sentences from the PHP manual:

\'this is a simple string\',
\'Arnold once said: \"I\\\'ll be back\"\',
\'You deleted C:\\\\*.*?\',
\'You deleted         


        
2条回答
  •  攒了一身酷
    2020-12-22 11:19

    Try this code. It is working as expected.

     
    

    You can specify allowable_tags in strip_tags. Refer strip_tags for further understanding Here is DEMO

提交回复
热议问题