$pattern = "/<.*>/";
$result = preg_replace($pattern,"",$str);
$isHasCompatibilityYes = preg_replace('/(<span\s\S>)\s\S(</span>)/','',$isHasCompatibilityYes); #span
php 删除之间的内容
最新推荐文章于 2024-05-06 11:30:00 发布
$pattern = "/<.*>/";
$result = preg_replace($pattern,"",$str);
$isHasCompatibilityYes = preg_replace('/(<span\s\S>)\s\S(</span>)/','',$isHasCompatibilityYes); #span