当前位置:网站首页>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
边栏推荐
- Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?
- 招标公告:2022年云南联通gbase数据库维保公开比选项目(第二次)比选公告
- 95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
- 谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
- Application example of infinite list [uigridview]
- What are compiled languages and interpreted languages?
- 山东老博会,2022中国智慧养老展会,智能化养老、适老科技展
- How to determine whether the checkbox in JS is selected
- Odoo集成Plausible埋码监控平台
- You Yuxi, coming!
猜你喜欢
Logback logging framework third-party jar package is available for free
Wireless sensor networks -- ZigBee and 6LoWPAN
What about the pointer in neural network C language
Unity3d click events added to 3D objects in the scene
Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?
Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc
C4D learning notes 2- animation - timeline and time function
SPI master RX time out interrupt
无线传感器网络--ZigBee和6LoWPAN
How does geojson data merge the boundaries of regions?
随机推荐
Continuous creation depends on it!
Plate - forme de surveillance par étapes zabbix
Three. JS introductory learning notes 11:three JS group composite object
Three. JS introductory learning notes 10:three JS grid
Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)
融云斩获 2022 中国信创数字化办公门户卓越产品奖!
【HCSD大咖直播】亲授大厂面试秘诀-简要笔记
Unity3D_ Class fishing project, bullet rebound effect is achieved
Power of leetcode-231-2
Asyncio concept and usage
平衡二叉树(AVL)
Three. JS introductory learning notes 03: perspective projection camera
深度之眼(六)——矩阵的逆(附:logistic模型一些想法)
分步式監控平臺zabbix
Iptables only allows the specified IP address to access the specified port
Limit of total fields [1000] in index has been exceeded
航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
Three. JS introductory learning notes 18: how to export JSON files with Blender
laravel构造函数和中间件执行顺序问题
航運船公司人工智能AI產品成熟化標准化規模應用,全球港航人工智能/集裝箱人工智能領軍者CIMC中集飛瞳,打造國際航運智能化標杆