import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_merge_variation7.php
blobe3befbcfe2e4ffea8f020c7f3b12ef995cb54e86
1 <?php
2 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
3 * Description: Merges elements from passed arrays into one array
4 * Source code: ext/standard/array.c
5 */
7 /*
8 * Pass array_merge() arrays with mixed keys to test how it attaches them to
9 * existing arrays
12 echo "*** Testing array_merge() : usage variations ***\n";
14 //mixed keys
15 $arr1 = array('zero', 20 => 'twenty', 'thirty' => 30, true => 'bool');
16 $arr2 = array(0, 1, 2, null => 'null', 1.234E-10 => 'float');
18 var_dump(array_merge($arr1, $arr2));
19 var_dump(array_merge($arr2, $arr1));
21 echo "Done";