WordPress开发者和主题制作者的搜索引擎



addslashes_gpc ›

Since0.71
已弃用n/a
addslashes_gpc ( $gpc )
参数:
  • (string) $gpc The string returned from HTTP request data.
    Required: Yes
返回:
  • (string) Returns a string escaped with slashes.
定义在:
文档:

Adds slashes to escape strings.

Slashes will first be removed if magic_quotes_gpc is set, see {@link https://secure.php.net/magic_quotes} for more details.



源码

function addslashes_gpc( $gpc ) {
	return wp_slash( $gpc );
}