I have an associative array wherein the keys are numeric ID numbersform (they arekey => value where key is a numerical value, however it is not a sequential / indices),numerical value. The key is actually an ID number and the values are "count" integersvalue is a count.
This is a suitable formatfine for most instances, however I want a function that gets the human-readable name from anotherof the array and uses that for the key (while maintaining the original relationship to, without changing the count values)value.
I didn't see a function that does this, but I'm assuming I need to provide the old key and new key (both of which I have) and transform the array. Is there an efficient way of doing this?