PHP: Swapping position of two array elements providing their keys

By Martin

I am working on a PHP thing where I need to be able to move array elements around based on their keys, the ordering is important. Non of the built in functions seem to do what I want and I could not find any similar problem/solution already posted somewhere so I made my own. In case someone needs the same thing, here it is, I place it in the public domain so feel free to use it as you want.

Read Post ›

In Dev | Tagged: