You can \"change\" the key of an array element simply by setting the new key and removing the old:
$array[$newKey] = $array[$oldKey]; unset($array[$oldKey]);
Do a double flip! At least that is all I can think of:
$array=("foo"=>"bar","asdf"=>"fdsa"); $array=array_flip($array); $array["bar"]=>'newkey'; $array=array_flip($array);