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

Home >Backend Development >PHP Tutorial >preg_replace replacement 有关问题

preg_replace replacement 有关问题

WBOY
WBOYOriginal
2016-06-13 12:07:591233browse

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);

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