array_flip() function exchanges all key and element values for the array.
//Its syntax is: array array_flip(array array) <? $l = array("a" => "A","b" => "B","q" => "Q"); $l = array_flip($l); print_r($l); ?>