时间:2021-07-01 10:21:17 帮助过:24人阅读
$string = <<…………………… str; $pattern = array('','',''); $replace = array('[img]1.jpg[/img]','[img]2.jpg[/img]','[img]3.jpg[/img]'); echo preg_replace($pattern, $replace, $string);
…………………… <[img]1.jpg[/img]> <[img]2.jpg[/img]> <[img]3.jpg[/img]> ……………………