Advertisements

wp_kses_array_lc

Definition:
function wp_kses_array_lc($inarray) {}

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

Parameters

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

}

3813

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: