addslashes_strings_only()
addslashes_strings_only( mixed $value )
仅当提供的值是字符串时才添加斜杠。
Adds slashes only if the provided value is a string.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$value | (mixed) | 必需 |
返回(Return)
(mixed)
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.3.0 | wp-includes/formatting.php:5506 | 0 | 0 |
addslashes_strings_only() 为WP2原创文章,链接:https://www.wp2.cn/functions/addslashes_strings_only/