结果:
this is a test.hello world!
this is a test.
hello world!
本文通过一个简单的 PHP 代码示例展示了如何使用 strip_tags 函数去除 HTML 和 body 标签,并保留特定标签的功能。strip_tags 是一个常用的 PHP 函数,用于移除字符串中的 HTML 和 PHP 标签。
结果:
this is a test.hello world!
this is a test.
hello world!
705

被折叠的 条评论
为什么被折叠?