当前位置:首页>网络教程>WordPress功能函数addslashes_gpc()

WordPress功能函数addslashes_gpc()

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

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()

给TA打赏
共{{data.count}}人
人已打赏
网络教程

WordPress开发功能函数activate_plugins()

2022-7-15 17:02:54

网络教程

WordPress开发函数add_action()详细介绍

2022-7-15 17:03:14

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索