Lines Matching refs:array
10 echo "*** Testing array_merge_recursive() : two dimensional array for \$arr1 argument ***\n";
12 // initialize the 2-d array
13 $arr1 = array(
14 array(1, 2, 3, 1),
15 "array" => array("hello", "world", "str1" => "hello", "str2" => 'world'),
16 array(1 => "one", 2 => "two", "one", 'two'),
17 array(1, 2, 3, 1)
21 $arr2 = array(1, "hello", "array" => array("hello", 'world'));
23 echo "-- Passing the entire 2-d array --\n";
29 echo "-- Passing the sub-array --\n";
31 var_dump( array_merge_recursive($arr1["array"]) );
33 var_dump( array_merge_recursive($arr1["array"], $arr2["array"]) );
38 *** Testing array_merge_recursive() : two dimensional array for $arr1 argument ***
39 -- Passing the entire 2-d array --
41 array(4) {
43 array(4) {
53 ["array"]=>
54 array(4) {
65 array(4) {
76 array(4) {
88 array(6) {
90 array(4) {
100 ["array"]=>
101 array(6) {
116 array(4) {
127 array(4) {
142 -- Passing the sub-array --
144 array(4) {
155 array(6) {