<?php $testArray = array("key1" => "Value1","key2" => "Value2","key3" => "Value3"); $testArray = array_flip($testArray); print_r($testArray); //Array ( [Value1] => key1 [Value2] => key2 [Value3] => key3 ) ?>
<?php $testArray = array("key1" => "Value1","key2" => "Value2","key3" => "Value3"); $testArray = array_flip($testArray); print_r($testArray); //Array ( [Value1] => key1 [Value2] => key2 [Value3] => key3 ) ?>