时间:2021-07-01 10:21:17 帮助过:8人阅读
$html = <<html;$regImg = preg_match_all('//', $html, $matches) ;$newSrc = $matches[1][0].'!static"'." _src=\"".$matches[1][0]."!static\" tsrc=\"".$matches[1][0];$html = str_replace($matches[1][0], $newSrc, $html);var_dump($html);
http://www.tantengvip.com/2014/02/preg-match-html/
Click here