函数原型
addslashes_gpc( string|array $gpc ): string|array
函数描述
Adds slashes to a string or recursively adds slashes to strings within an array.
是否弃用
未弃用
函数参数
-
$gpc
string|array
Required - String or array of data to slash.
函数返回值
string|array Slashed $gpc.
函数位置
File: wp-includes/formatting.php.
函数源码
function addslashes_gpc( $gpc ) {
return wp_slash( $gpc );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 0.71 | Introduced. |

