wp_kses_array_lc( array $inarray ): array

Converts the keys of an array to lowercase.


Parameters

$inarray array Required
Unfiltered array.

Top ↑

Return

array Fixed array with all lowercase keys.


Top ↑

Source

File: wp-includes/kses.php. View all references

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;
}

Top ↑

Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.