wp_kses_array_lc( array $inarray )
Converts the keys of an array to lowercase.
Description Description
Parameters Parameters
- $inarray
-
(array) (Required) Unfiltered array.
Return Return
(array) Fixed array with all lowercase keys.
Source 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; } } return $outarray; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |