function wp_kses_array_lc($inarray) {}

Goes through an array and changes the keys to all lower case.


  • array $inarray: Unfiltered array

Return values

returns:Fixed array with all lowercase keys

Source code

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;



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: