stripslashes_deep [ WordPress Function ]
stripslashes_deep ( $value )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: 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.
Source
<?php
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 );
}
} else {
$value = stripslashes($value);
}
return $value;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- 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 - function stripslashes_deep($value) should use is_string() - WordPress
my special case: lately i tried to store an array containing a bool among several values using function update_user_meta(). the array was serialized and stored ...
wordpress.org - PHP: stripslashes - Manual
<?php function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : ... $array = stripslashes_deep($array); ...
php.net - stripslashes_deep :: Global Functions :: Global Constants and ...
stripslashes_deep(array $value) Recursively strips slashes from the supplied $ value. Returns the modified array.
book.cakephp.org