stripslashes_deep [ WordPress-Funktionen ]
stripslashes_deep ( $value )
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex |
Ähnliche Funktionen: wp_kses_stripslashes, addslashes_gpc, strip_shortcodes, set_url_scheme, display_header
Navigates through an array and removes slashes from the values.
If an array is passed, the array_map() function causes a callback to pass the value back to the function. The slashes from this value will removed.
Quellcode
function stripslashes_deep($value) {
if ( is_array($value) ) {
$value = array_map('stripslashes_deep', $value);
} elseif ( is_object($value) ) {
$vars = get_object_vars( $value );
foreach ($vars as $key=>$data) {
$value->{$key} = stripslashes_deep( $data );
}
} elseif ( is_string( $value ) ) {
$value = stripslashes($value);
}
return $value;
}Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- Function Reference/stripslashes deep « WordPress Codex
Description. Navigates through an array and removes slashes from the values. If an array is passed, the array_map() function causes a callback to pass the ...
codex.wordpress.org - PHP: stripslashes - Manual
<?php function stripslashes_deep($value) ..... 5 years ago. kibby: I modified the stripslashes_deep() function so that I could use it on NULL values. function ...
php.net - stripslashes_deep (WordPress Function) - WPSeek.com
Navigates through an array and removes slashes from the values. WordPress lookup for stripslashes_deep, a WordPress Function.
wpseek.com - Gallery 1.5, WordPress 2, stripslashes_deep conflict (solution ...
This can be attributed to both Gallery and WordPress defining a function stripslashes_deep(), and thus PHP detects a conflict due to the fact I ...
galleryproject.org
