当前位置:网站首页>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
边栏推荐
- U3D_ Infinite Bessel curve
- Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
- The unity vector rotates at a point
- 2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
- 平衡二叉树(AVL)
- Wireless sensor networks -- ZigBee and 6LoWPAN
- JS array foreach source code parsing
- A link opens the applet code. After compilation, it is easy to understand
- Dotween -- ease function
- 如何在shell中实现 backspace
猜你喜欢
Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench
TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比
深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
讲师征集令 | Apache SeaTunnel(Incubating) Meetup 分享嘉宾火热招募中!
Logback日志框架第三方jar包 免费获取
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
SPI master RX time out interrupt
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
随机推荐
融云斩获 2022 中国信创数字化办公门户卓越产品奖!
Talk about the cloud deployment of local projects created by SAP IRPA studio
模仿企业微信会议室选择
Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
Asyncio concept and usage
星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
Power of leetcode-231-2
laravel构造函数和中间件执行顺序问题
神经网络c语言中的指针是怎么回事
Description of vs common shortcut keys
SPI master rx time out中断
Dotween -- ease function
AE learning 01: AE complete project summary
通知Notification使用全解析
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
Eye of depth (VII) -- Elementary Transformation of matrix (attachment: explanation of some mathematical models)
Migration and reprint
Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models
Limit of total fields [1000] in index has been exceeded