public static function remapArrayKeys(&$array, $mappingTable) {
		if (is_array($mappingTable)) {
			foreach ($mappingTable as $old => $new) {
				if ($new && isset($array[$old])) {
					$array[$new] = $array[$old];
					unset ($array[$old]);
				}
			}
		}
	}
public static function remapArrayKeys(&$array, $mappingTable) {
		if (is_array($mappingTable)) {
			foreach ($mappingTable as $old => $new) {
				if ($new && isset($array[$old])) {
					$array[$new] = $array[$old];
					unset ($array[$old]);
				}
			}
		}
	}
public static function remapArrayKeys ( & $ array , $ mappingTable ) { if ( is_array ( $ mappingTable ) ) { foreach ( $ mappingTable as $ old => $ new ) { if ( $ new && isset ( $ array [ $ old ] ) ) { $ array [ $ new ] = $ array [ $ old ] ; unset ( $ array [ $ old ] ) ; } } } }
Rename Array keys with a given mapping table

@param array	$array Array by reference which should be remapped
@param array	$mappingTable Array with remap information, array/$oldKey => $newKey)
Rename Array keys with a given mapping table