The way you would do this and preserve the ordering of the array is by putting the array keys into a separate array, find and replace the key in that array ... ... <看更多>
I would agree that this is not a good idea. Even if the language you're using defines what should happen in this situation (I don't know if PHP does; ... ... <看更多>