Replace keys in an array based on another lookup/mapping array September 21, 2022 by Tarik $arr[$newkey] = $arr[$oldkey]; unset($arr[$oldkey]);