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

图片路径问题

WBOY
Release: 2016-06-23 13:10:24
Original
1002 people have browsed it

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

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


怎样去掉\"

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


回复讨论(解决方案)

trim($src, '\"');
Copy after login
Copy after login

trim($src, '\"');
Copy after login
Copy after login



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

$src = str_replace('\"', '', $src);
Copy after login

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template