Merge Two Array Script

Merge Two Array Script is use to merge two or more array elements into a single array.

Demo :



First Array Input :
Second Array Input :
 
 

Example :

You fill First Array Input list like this A,b,c and Second Array Input list Like this 1,2,3 then now will be to store both arrays list then click merge button finally out put will display like this Array ( [0] => a [1] => b [2] => c [3] => 1 [4] => 2 [5] => 3 ).

Following code is Merge Two Array Script core if you need to download and use to your website.


<?php
  $statesUS = array("Maine", "New York", "Florida", "California");
  $statesIN = array("Maharashtra", "Tamil Nadu", "Kerala");
  $states = array_merge($statesUS, $statesIN);
  print_r($states);
?>

In the above have two arrays that first one is US states and second one is indian states.which both have to stored $statesUS and $statesIN variables.In which both array have been pass to array_merge() functions.finally the output will display on this broswer Like this Array ( [0] => Maine [1] => New York [2] => Florida [3] => California [4] => Maharashtra [5] => Tamil Nadu [6] => Kerala ) .

Free Download Script :

If you need Merge Two Array Script click and download from following link.

Download




Content