Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Merge two or more arrays recursively

Tue Oct 28, 2008 1:19 am

Code:
<?php
   $class1
= array("A" => 100, "C" => 85);
   
$class2 = array("B" => 78, "D" => 45);
   
$classScores = array_merge_recursive($class1, $class2);
   
print_r($classScores);
?>




Post a reply
  Related Posts  to : Merge two or more arrays recursively
 recursively calculating factorial     -  
 solving fibonacci sequence recursively     -  
 lists merge     -  
 merge sort implementation in C++     -  
 Java merge sort example     -  
 How to merge the data into file     -  
 multidimensional array merge using PHP     -  
 Defining arrays in ASP     -  
 Multidimensional Arrays in JSP     -  
 Arrays in java     -  

Topic Tags

PHP Arrays