Changing the key name recursively: stackoverflow.com/questions/3808602/… . As for removing the keys, use unset($arr['level']); as you are looping though $arr
↧