Question:$state = array("Delaware", "Pennsylvania", "New Jersey"); $state = array_flip($state); print_r($state); This example returns the following: 

A Array ( [Delaware] => 0 [Pennsylvania] => 1 [New Jersey] => 2 ) 

B Array (0 =>[Delaware] 1=>[Pennsylvania] 2 =>[New Jersey] ) 

C Array ( [Delaware] => 1 [Pennsylvania] => 2[New Jersey] => 3 ) 

D Array ( [Delaware] => 0 [Pennsylvania] => 1 [New Jersey] => 2 ) 

+ Answer
+ Report
Total Preview: 709

Copyright © 2024. Powered by Intellect Software Ltd