Replacing backslashes with forward slashes with str_replace() in php

前端 未结 6 1700
花落未央
花落未央 2020-12-09 14:29

I have the following url:

$str = \"http://www.domain.com/data/images\\flags/en.gif\";

I\'m using str_replace to try and replac

6条回答
  •  醉梦人生
    2020-12-09 15:06

    You want to replace the Backslash?

    Try stripcslashes:

    http://www.php.net/manual/en/function.stripcslashes.php

提交回复
热议问题