wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_kses_array_lc › WordPress Function

Depuis1.0.0
Dépréciéen/a
wp_kses_array_lc ( $inarray )
Paramètres:
  • (array) $inarray Unfiltered array.
    Requis: Oui
Retourne:
  • (array) Fixed array with all lowercase keys.
Défini(e) dans:
Codex:

Converts the keys of an array to lowercase.



Source

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