PHP example that you can use to flip the values and keys in an array. Essentially all the values will become keys and all the keys will become values.
<php
$sampleArray = array(0=>”one”, 1=>”two”, 2=>”three”);
$flipedArray = array_flip($sampleArray);
endphp>




Friday, January 27th, 2012, 4:19 pm | 
