stripslashes_deep

函式
stripslashes_deep ( $value )
引數
  • (mixed) $value The value to be stripped.
    Required:
返回值
  • (mixed) Stripped value.
定義位置
相關方法
wp_kses_stripslashesaddslashes_gpcstripslashes_from_strings_onlywp_spaces_regexpstrip_shortcodes
引入
2.0.0
棄用
-

stripslashes_deep: 這是一個WordPress的函式,從一個多維陣列中刪除斜線。它需要一個引數,$value,並返回刪除了所有斜線的陣列。

瀏覽一個陣列、物件或標量,並刪除數值中的斜槓。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function stripslashes_deep( $value ) {
return map_deep( $value, 'stripslashes_from_strings_only' );
}
function stripslashes_deep( $value ) { return map_deep( $value, 'stripslashes_from_strings_only' ); }
function stripslashes_deep( $value ) {
	return map_deep( $value, 'stripslashes_from_strings_only' );
}

常見問題

FAQs
檢視更多 >