php过滤函数

addcslashes — 以 C 语言风格使用反斜线转义字符串中的字符

addslashes — 使用反斜线引用字符串

strip_tags — 从字符串中去除 HTML 和 PHP 标记

stripcslashes — 反引用一个使用 addcslashes 转义的字符串

stripslashes — 反引用一个引用字符串

html_entity_decode — Convert all HTML entities to their applicable characters

htmlentities — Convert all applicable characters to HTML entities

htmlspecialchars_decode — 将特殊的 HTML 实体转换回普通字符

htmlspecialchars — Convert special characters to HTML entities

mysql_escape_string — 转义一个字符串用于 mysql_query

mysql_real_escape_string转义 SQL 语句中使用的字符串中的特殊字符,并考虑到连接的当前字符集

 

posted @ 2015-12-02 13:55  稻禾盛夏  阅读(132)  评论(0编辑  收藏  举报