下面是我需要删除的文本 <p>
标签
<p> Addiction, stress and subjective wellbeing</p>
<p> The need and significance of traditional shop lot pavements in the context of town conservation in Malaysia</p>
<p> The role of wage and benefit in engaging employee commitment</p>
我试过这个
$title= preg_replace('#<p>(.*?)</p>#', '', $title['result']);**
但我仍然在获取 <p>
标签,有什么想法吗?
原文由 spsaravananct 发布,翻译遵循 CC BY-SA 4.0 许可协议
只是为了删除 p 标签,你可以这样做