阅读背景:

通过id查找元素,并用php替换其内容

来源:互联网 

I want to use PHP to search through the contents of a file for an element with a specific id, replace its contents, then save my changes to the file. I'm able to load in the HTML, and save it back out again, but am having trouble with the 'find and replace' (currently trying to use preg_replace). I want to use PHP to search through the content




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: