> > Yes there is: > array_combine( > array_map($someFunc, array_keys($arr), $arr), > $arr > ) > This way $someFunc gets key as first argument and value as second. (you > might use array_values($arr) instead of $arr but I’m not sure it’s worth it) >
Good call! I have updated the RFC to include this example as it best matches the behavior of the proposed function. Regards, Colin