时间:2021-07-01 10:21:17 帮助过:19人阅读
preg_replace
- $html = <<<htmlca<font>sdcasdhtml;preg_match_all('/\s*(?:.*?)<\/a>/i', $html, $match);foreach ($match[0] as $key => $value) {
- $newValue = $value."\n<img src="https://www.gxlcms.com/tr.php?hash=".$match[1][$key]."" width="155" heigth="120">";
- $html = str_replace($value, $newValue, $html);}var_dump($html);</htmlca<font>