array_merge_recursive : array_merge_recursive « Data Structure « PHP






array_merge_recursive

 
<?php

$class1 = array("John" => 100, "James" => 85);
$class2 = array("Micky" => 78, "John" => 45);
$classScores = array_merge_recursive($class1, $class2);
print_r($classScores);

?>
  
  








Related examples in the same category