> > The RFC states "The new array returned by this function will contain the > same values in the same order, but with potentially different keys." > > But further down it states, that on multiple times the same key the last > one will "win". So in that special case it's **not** the same array > anymore. Or did I miss something? >
You're right, I didn't word that first part very well. I've revised the RFC to mention the two "exceptions to the rule" earlier. Essentially this function is going to mirror the behavior of array_flip() whenever an invalid or duplicate key is encountered. Thanks for catching that! Colin