Remove all backslashes from PHP urldecoded string

后端 未结 5 1103
悲哀的现实
悲哀的现实 2021-01-18 05:03

I am trying to remove all backslashes from a url-decoded string, but it is outputting \\ rather than outputting the url-decoded string with \\ removed.

Please can yo

5条回答
  •  一向
    一向 (楼主)
    2021-01-18 05:24

    This is working for 100% correctly.

    $attribution = str_ireplace('\r\n', '', urldecode($attribution));
    

提交回复
热议问题