标签: php string
我有这个string,其中包含HTML代码:
string
.... .... <span class="sss">some word</span> .... ....
在我的情况下,some word如何仅从该行中提取文本。我尝试使用substr和strpos函数来做到这一点。但是,我有一些问题。
some word
substr
strpos
</span>
P.S表示文本不仅是字符串值的非html部分