当前位置:网站首页>PHP has its own filtering and escape functions
PHP has its own filtering and escape functions
2022-07-07 16:19:00 【Full stack programmer webmaster】
classification :
Function name | paraphrase | Introduce |
---|---|---|
htmlspecialchars | Will work with 、 Single and double quotation marks 、 Greater than and less than sign into HTML Format | & Turn into &“ Turn into "‘ Turn into '< Turn into <> Turn into > |
htmlentities() | All characters are converted to HTML Format | Except above htmlspecialchars Out of character , It also includes the display of double byte characters as encoding . |
addslashes | Single and double quotation marks 、 Backslash and NULL Escape with backslash | The changed characters include single quotation marks (‘)、 Double quotes (“)、 Backslash backslash (\) And empty characters NULL. |
stripslashes | Remove the backslash character | Remove the backslash character from the string . If there are two consecutive backslashes , Then remove one , Leave one . If there is only one backslash , Just get rid of it . |
quotemeta | Add reference symbols | Include... In the string . \\ + * ? [ ^ ] ( $ ) Add a backslash in front of the characters such as “\” Symbol . |
nl2br() | Convert newline characters to <br> | |
strip_tags | Get rid of HTML And PHP Mark | Remove any HTML Labelling and PHP Mark , Including the contents between marking and plugging . Note that if the string HTML And PHP There is an error in the label , It also returns an error . |
mysql_real_escape_string | escape SQL Special characters in string | escape \x00 \n \r Space \ ‘ ” \x1a, It is very effective for multi byte character processing .mysql_real_escape_string Can judge the character set ,mysql_escape_string You don't have to consider . |
base64_decode | base64 decode | To use MIME base64 Decode the encoded data |
base64_encode | base64 code | Use MIME base64 Code the data |
rawurldecode | URL decode | For encoded URL String decoding |
rawurlencode | URL code | according to RFC 1738 Yes URL Encoding |
urldecode | URL decode | Decode the encoded URL character string |
urlencode | URL code | code URL character string |
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/113210.html Link to the original text :https://javaforall.cn
边栏推荐
- 47_Opencv中的轮廓查找 cv::findContours()
- Performance measure of classification model
- PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
- Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
- iptables只允许指定ip地址访问指定端口
- 招标公告:2022年云南联通gbase数据库维保公开比选项目(第二次)比选公告
- 航天宏图信息中标乌鲁木齐某单位数据库系统研发项目
- C4D learning notes 2- animation - timeline and time function
- Laravel 中config的用法
- Three. JS introductory learning notes 10:three JS grid
猜你喜欢
融云斩获 2022 中国信创数字化办公门户卓越产品奖!
Numpy --- basic learning notes
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
尤雨溪,来了!
Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?
Three. JS introductory learning notes 19: how to import FBX static model
模仿企业微信会议室选择
AE learning 02: timeline
Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models
Wireless sensor networks -- ZigBee and 6LoWPAN
随机推荐
Rongyun won the 2022 China Xinchuang digital office portal excellence product award!
融云斩获 2022 中国信创数字化办公门户卓越产品奖!
How to implement backspace in shell
【知识小结】PHP使用svn笔记总结
Power of leetcode-231-2
IP地址和物理地址有什么区别
Three. JS introductory learning notes 04: external model import - no material obj model
Three. JS introductory learning notes 05: external model import -c4d into JSON file for web pages
Iptables only allows the specified IP address to access the specified port
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
Leetcode-136-只出现一次的数(用异或来解答)
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
Limit of total fields [1000] in index has been exceeded
Three. JS introductory learning notes 18: how to export JSON files with Blender
强化实时数据管理,英方软件助力医保平台安全建设
Lecturer solicitation order | Apache seatunnel (cultivating) meetup sharing guests are in hot Recruitment!
You Yuxi, coming!
Plate - forme de surveillance par étapes zabbix
three.js打造酷炫下雪效果
讲师征集令 | Apache SeaTunnel(Incubating) Meetup 分享嘉宾火热招募中!