首页 > 技术 > cms教程

WordPress功能函数addslashes_gpc()

cms教程 2022-10-26 09:23:33

WordPress功能函数addslashes_gpc()添加斜杠来转义字符串。

addslashes_gpc( string $gpc )

描述:

如果设置了magic_quotes_gpc,斜杠将首先被删除,请参阅https://www.php.net/magic_quotes了解更多细节。

参数:

$gpc

(string) (必需) 从HTTP请求数据返回的字符串。

返回:

(string) 返回一个用斜杠转义的字符串。

来源:

文件: wp-includes/formatting.php

function addslashes_gpc( $gpc ) {

return wp_slash( $gpc );

}

更新版本:

WordPress功能函数addslashes_gpc() (https://www.wpzt.net/) WordPress开发教程 第1张

TAg

加载中~

本网站LOGO受版权及商标保护,版权登记号:国作登字-2022-F-10126915,未经湖南木星科技官方许可,严禁使用。
Copyright © 2012-2022 湖南木星科技有限公司(木星网)版权所有
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源,商业媒体及纸媒请先联系:aishangyiwan@126.com

工信部备案号:湘ICP备19012813号-5