backslashit

函数


backslashit ( $string )
参数
  • (string)
    $string
    Value to which backslashes will be added.
    Required:
返回值
  • (string) String with backslashes inserted.
定义位置
  • wp-includes/formatting.php
    , line 2746
引入
0.71
弃用

Adds backslashes before letters and before a number at the start of a string.

function backslashit( $string ) {
	if ( isset( $string[0] ) && $string[0] >= '0' && $string[0]