addslashes_gpc()

addslashes_gpc( string|array $gpc )

将斜杠添加到字符串或递归地将斜杠添加到数组中的字符串。

描述

如果设置了magic_quotes_gpc,斜线将首先被删除,有关更多详细信息,请参见https://www.php.net/magic_quotes。

参数

$gpc
(string|array) (必需)要斜线的字符串或数据数组。

返回

(string|array) Slashed $gpc.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注