×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: bejoy balan
Added: Oct 1, 2014 9:35 AM
Views: 22
Array combine, csv, header,import
  1. <?php
  2. $a = array('green', 'red', 'yellow');
  3. $b = array('avocado', 'apple', 'banana');
  4. $c = array_combine($a, $b);
  5.  
  6. print_r($c);
  7. ?>