array_combine : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

array_combine




<?php
   $abbreviations = array("AL","AK","AZ","AR");
   $states = array("Alabama","Alaska","Arizona","Arkansas");
   $stateMap = array_combine($abbreviations,$states);
   print_r($stateMap);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function