wp_kses_array_lc
Goes through an array and changes the keys to all lower case.
Description
(array) wp_kses_array_lc( (array) $inarray );
Returns (array)
Fixed array with all lowercase keys
Parameters (1)
- 0. $inarray (array)
- Unfiltered array
Usage
if ( !function_exists( 'wp_kses_array_lc' ) ) { require_once ABSPATH . WPINC . '/kses.php'; } // Unfiltered array $inarray = array(); // NOTICE! Understand what this does before running. $result = wp_kses_array_lc($inarray);
Defined (1)
The function is defined in the following location(s).
- /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;
- }