wp_kses_array_lc( array $inarray )
Goes through an array and changes the keys to all lower case.
Parameters
- $inarray
-
(Required) Unfiltered array
Return
(array) Fixed array with all lowercase keys
Source
File: wp-includes/kses.php
function wp_kses_array_lc($inarray) {
$outarray = array ();
foreach ( (array) $inarray as $inkey => $inval) {
$outkey = strtolower($inkey);
$outarray[$outkey] = array ();
foreach ( (array) $inval as $inkey2 => $inval2) {
$outkey2 = strtolower($inkey2);
$outarray[$outkey][$outkey2] = $inval2;
} // foreach $inval
} // foreach $inarray
return $outarray;
}
Changelog
Version | Description |
---|---|
WP-1.0.0 | Introduced. |