Home >Backend Development >PHP Tutorial >图片路径问题

图片路径问题

WBOY
WBOYOriginal
2016-06-23 13:10:24979browse

就数据导入到新数据库,编辑器里面的图片路径有不一样的,

src="\"/d/file/2016-01-07/999d76c6927abbdd1fdb66d9bb254391.jpg\""


怎样去掉\"

还有一些是正常的
/d/file/2016-01-07/999d76c6927abbdd1fdb66d9bb254391.jpg


回复讨论(解决方案)

trim($src, '\"');

trim($src, '\"');



谢谢,我这里是编辑器,要用str_replace

$src = str_replace('\"', '', $src);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn