array_flip : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

array_flip



<?php
   $state = array("Delaware","Pennsylvania","New Jersey");
   $state = array_flip($state);
   print_r($state);
   // Array ( [Delaware] => 0 [Pennsylvania] => 1 [New Jersey] => 2 )
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function