Multidimensional mixed associative/numeric array shifting?

Loop though all elements like this: foreach ($all_items as $key =>$items) { $dataset = $items'dataset'; unset($all_items$key'dataset'); // Removing it (from the top) $all_items$key'dataset' = $dataset; // Adding it again (at the bottom) } Unsetting the 'dataset' element and adding it again will cause the element to be added at the bottom It's important that you modify the original array directly, not the $items from the foreach, because those changes will not affect the original array.

Loop though all elements like this: foreach ($all_items as $key =>$items) { $dataset = $items'dataset'; unset($all_items$key'dataset'); // Removing it (from the top) $all_items$key'dataset' = $dataset; // Adding it again (at the bottom) } Unsetting the 'dataset' element and adding it again will cause the element to be added at the bottom. It's important that you modify the original array directly, not the $items from the foreach, because those changes will not affect the original array.

Awesome...wow. How bout that. I got so baffled in all the dimensions the obvious totally escaped me.

Thanks man! – ocergynohtna May 18 '09 at 17:24.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions