当前位置:网站首页>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
边栏推荐
- hellogolang
- 通知Notification使用全解析
- Unity drawing plug-in = = [support the update of the original atlas]
- Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
- Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?
- 谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
- U3D_ Infinite Bessel curve
- 深度之眼(六)——矩阵的逆(附:logistic模型一些想法)
- 星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
- Unity3d click events added to 3D objects in the scene
猜你喜欢
Shipping companies' AI products are mature, standardized and applied on a large scale. CIMC, the global leader in port and shipping AI / container AI, has built a benchmark for international shipping
JS array foreach source code parsing
保证接口数据安全的10种方案
MySQL数据库基本操作-DQL-基本查询
Mysql database basic operation DQL basic query
Excessive dependence on subsidies, difficult collection of key customers, and how strong is the potential to reach the dream of "the first share of domestic databases"?
平衡二叉树(AVL)
Step by step monitoring platform ZABBIX
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
山东老博会,2022中国智慧养老展会,智能化养老、适老科技展
随机推荐
Markdown formula editing tutorial
统计学习方法——感知机
Mysql database basic operation DQL basic query
Three. JS introductory learning notes 05: external model import -c4d into JSON file for web pages
航運船公司人工智能AI產品成熟化標准化規模應用,全球港航人工智能/集裝箱人工智能領軍者CIMC中集飛瞳,打造國際航運智能化標杆
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
Odoo集成Plausible埋码监控平台
IP地址和物理地址有什么区别
山东老博会,2022中国智慧养老展会,智能化养老、适老科技展
Three. JS introductory learning notes 10:three JS grid
Application example of infinite list [uigridview]
C4D learning notes 1- animation - animation key frames
Use moviepy Editor clips videos and intercepts video clips in batches
asyncio 概念和用法
SPI master RX time out interrupt
Mysql database backup script
laravel怎么获取到public路径
深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
讲师征集令 | Apache SeaTunnel(Incubating) Meetup 分享嘉宾火热招募中!