like_escape()
like_escape( string $text )
以前用于在搜索数据库之前转义字符串。它没有很好的记录,从来没有像描述的那样工作。
Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described.
说明(Description)
另见函数 wpdb::esc_like()()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$text | (string) | 必需 | 要转义的文本。 |
返回(Return)
(string)文本,可安全地包含在LIKE查询中。
源码(Source)
like_escape() 函数的代码位于 wp-includes/formatting.php.
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.0.0 | wp-includes/deprecated.php:3434 | 1 function | 1 function |
like_escape() 为WP2原创文章,链接:https://www.wp2.cn/functions/like_escape/