Home >Backend Development >PHP Tutorial >PHP strip_tags() 函数

PHP strip_tags() 函数

WBOY
WBOYOriginal
2016-06-23 14:35:16952browse

定义和用法

strip_tags() 函数剥去 HTML、XML 以及 PHP 的标签。

语法strip_tags(string,allow)

参数描述
string 必需。规定要检查的字符串。
allow 可选。规定允许的标签。这些标签不会被删除。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:1.0 EcShop开篇有益-序Next article:php树算法