content);失败 replacement  怎么拼装 “12312 base64_e"/> content);失败 replacement  怎么拼装 “12312 base64_e">

preg_replace replacement 有关问题

WBOY
Release: 2016-06-13 12:07:59
Original
1194 people have browsed it

preg_replace replacement 问题
preg_replace("/{\.\.\/}2.*\.htm/ie","12312".base64_encode('\\0'), $this->content);失败 


replacement  怎么拼装 “12312 base64_encode(原先匹配到的内容)",一直拼装不成功


------解决思路----------------------
preg_replace("/{\.\.\/}2.*\.htm/ie","‘12312’.base64_encode('\\0')“, $this->content);

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!