以下是我需要删除<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>
Run Code Online (Sandbox Code Playgroud)
我试过这个
$title= preg_replace('#<p>(.*?)</p>#', '', $title['result']);**
Run Code Online (Sandbox Code Playgroud)
但仍然在获取<p>标签,任何想法?
嗨,我是woocommerce的新手,我的问题是只需要在购物车上添加单品,必须清除所有产品,并在我点击添加到购物车按钮时将当前产品添加到购物车