Merge two arrays into one array:


SUBMITTED BY: henry1874w

DATE: June 25, 2017, 2:28 p.m.

FORMAT: Text only

SIZE: 127 Bytes

HITS: 253

  1. <?php
  2. $a1=array("a"=>"red","b"=>"green");
  3. $a2=array("c"=>"blue","b"=>"yellow");
  4. print_r(array_merge_recursive($a1,$a2));
  5. ?>

comments powered by Disqus