backslashit()
backslashit( string $string ) 在字符串开头的字母前和数字前添加反斜杠。Adds …
backslashit( string $string )
在字符串开头的字母前和数字前添加反斜杠。
Adds backslashes before letters and before a number at the start of a string.
在字符串开头的字母前和数字前添加反斜杠。
Adds backslashes before letters and before a number at the start of a string.
目录锚点:#参数#返回#源码
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $string | (string) | 必需 | 将添加反斜杠的值。 |
返回(Return)
(string)插入反斜杠的string。
源码(Source)
/**
* Adds backslashes before letters and before a number at the start of a string.
*
* @since 0.71
*
* @param string $string Value to which backslashes will be added.
* @return string String with backslashes inserted.
*/
function backslashit( $string ) {
if ( isset( $string[0] ) && $string[0] >= '0' && $string[0] <= '9'="" )="" $string='' .="" $string;="" return="" addcslashes(="" $string,="" 'a..za..z'="" );="" }="">| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 0.71 | wp-includes/formatting.php:2668 | 0 | 0 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!