转义 sql like 中的特殊字符:% 和 _。
用法
参数
$text
(string) (required) 将将以的文本。
default: 无
返回值
(string)
已经转义的文本,可以安全用于 sql like 中。
修改记录
since 2.5.0
源文件
wp-includes/formatting.php.
转义 sql like 中的特殊字符:% 和 _。
$text
(string) (required) 将将以的文本。
default: 无
(string)
已经转义的文本,可以安全用于 sql like 中。
since 2.5.0
wp-includes/formatting.php.