$content = "The International Journal of Nursing published a
<b>study of 557 adults suffering</b>
<br>
<b>from sleep</b>
disorders. In this study, music was played when they ...";
匹配文本
$line = "study of 557 adults suffering from sleep";
和somtimes內容可以
$content = "The International Journal of Nursing published a
<b>study of 557 adults suffering from sleep</b>
disorders. In this study, music was played when they ...";
,所以我需要一個解決方案可適用於
preg_match("#<b>$line</b>#is",$content,$match);
因此,你想在所有的大膽標籤之間? – Andreas
查看相關的問題 – Jelmergu
我想在兩個$內容中匹配$ line與單個解決方案 –