Lines Matching refs:array
2 Test array_merge_recursive() function : usage variations - associative array with different keys
5 /* Prototype : array array_merge_recursive(array $arr1[, array $...])
6 * Description: Recursively merges elements from passed arrays into one array
7 * Source code: ext/standard/array.c
15 echo "*** Testing array_merge_recursive() : assoc. array with diff. keys to \$arr1 argument ***\n";
38 $arrays = array (
40 array(0 => "0", 1 => array(1 => "one")),
41 array(1 => "1", 2 => array(1 => "one", 2 => "two", 3 => 1, 4 => "4")),
44 /*3*/ array(2.3333 => "float", 44.44 => array(1.1 => "float")),
45 … array(1.2 => "f1", 3.33 => "f2", 4.89999922839999 => array(1.1 => "f1"), 3333333.333333 => "f4"),
48 /*5*/ array('\tHello' => array("hello", 'world'), '\v\fworld' => 2.2, 'pen\n' => 111),
49 array("\tHello" => array("hello", 'world'), "\v\fworld" => 2.2, "pen\n" => 111),
50 array("hello", $heredoc => array("heredoc", 'string'), "string"),
52 // array with object, unset variable and resource variable
53 /*8*/ array(new classA() => 11, @$unset_var => array("unset"), $fp => 'resource', 11, "hello")
56 // initialise the second array
57 $arr2 = array( 1 => "one", 2, "string" => "hello", "array" => array("a", "b", "c"));
59 // loop through each sub array of $arrays and check the behavior of array_merge_recursive()
81 *** Testing array_merge_recursive() : assoc. array with diff. keys to $arr1 argument ***
88 array(2) {
92 array(1) {
98 array(6) {
102 array(1) {
112 ["array"]=>
113 array(3) {
124 array(2) {
128 array(4) {
140 array(6) {
144 array(4) {
160 ["array"]=>
161 array(3) {
172 array(2) {
176 array(1) {
182 array(6) {
186 array(1) {
196 ["array"]=>
197 array(3) {
208 array(4) {
214 array(1) {
222 array(8) {
228 array(1) {
240 ["array"]=>
241 array(3) {
252 array(3) {
254 array(2) {
266 array(7) {
268 array(2) {
284 ["array"]=>
285 array(3) {
296 array(3) {
298 array(2) {
311 array(7) {
313 array(2) {
330 ["array"]=>
331 array(3) {
342 array(3) {
346 array(2) {
356 array(7) {
360 array(2) {
374 ["array"]=>
375 array(3) {
386 array(3) {
388 array(1) {
398 array(7) {
400 array(1) {
414 ["array"]=>
415 array(3) {