时间:2021-07-01 10:21:17 帮助过:19人阅读
preg_replace
$html = <<sdcasdhtml;preg_match_all('/\s*(?:.*?)<\/a>/i', $html, $match);foreach ($match[0] as $key => $value) { $newValue = $value."\n"; $html = str_replace($value, $newValue, $html);}var_dump($html);