douxing8323 2014-04-03 20:52
浏览 434
已采纳

双引号的str_replace根本不起作用

I've used str_replace for many characters and it works perfectly. For the life of me it does not work with double quotes. It simply doesn't do anything:

$value = str_replace('"', '', $value);

This does not remove double quotes. Is there some Apache or PHP setting that stops this from working?

Edit: trim($value, '"') also does not work! I think i'm going mad.

Edit 2: AbraCadaver got it! Thanks it needed "

  • 写回答

4条回答 默认 最新

  • douyong7199 2014-04-04 13:15
    关注
    $value = str_replace(""", "", $value);
    

    Thanks AbraCadaver

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?