当前位置:网站首页>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
边栏推荐
- SPI master RX time out interrupt
- Sysom case analysis: where is the missing memory| Dragon lizard Technology
- Xcode Revoke certificate
- 航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
- Rongyun won the 2022 China Xinchuang digital office portal excellence product award!
- markdown公式编辑教程
- 喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配
- Notification uses full resolution
- Asyncio concept and usage
- laravel构造函数和中间件执行顺序问题
猜你喜欢
谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
Description of vs common shortcut keys
Power of leetcode-231-2
Numpy --- basic learning notes
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
Logback日志框架第三方jar包 免费获取
深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
Three. JS introductory learning notes 04: external model import - no material obj model
Three. JS introductory learning notes 18: how to export JSON files with Blender
Sysom case analysis: where is the missing memory| Dragon lizard Technology
随机推荐
The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
Application example of infinite list [uigridview]
AE learning 02: timeline
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
Leetcode-136- number that appears only once (solve with XOR)
一个普通人除了去工厂上班赚钱,还能干什么工作?
应用程序和matlab的通信方式
10 schemes to ensure interface data security
How to determine whether the checkbox in JS is selected
How to implement backspace in shell
喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
TCP framework___ Unity
U3D_ Infinite Bessel curve
Notification uses full resolution
php 自带过滤和转义函数
深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
hellogolang
Shader_ Animation sequence frame
讲师征集令 | Apache SeaTunnel(Incubating) Meetup 分享嘉宾火热招募中!