Page 1 of 1

Flipping an array

Posted: Mon Oct 24, 2005 2:22 am
by localhost
I want to flip an array without using array_flip funtion because i cant seem to find a way to include the duplicate values like [4]=>10 and [5]=>10, flipping this will result in [10]=4 and losing the value of 5...

Posted: Mon Oct 24, 2005 2:58 am
by Jenk
Duplicate keys can't be done. You'll have to change the key value to something else.