Rumah > Artikel > pembangunan bahagian belakang > 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);
preg_replace("/{\.\.\/}2.*\.htm/ie", "‘12312’.base64_encode('\\0')“, $this->content);
去掉最外层的括号应是一条合法的 php 语句