Lines Matching refs:array
2 Test array_merge_recursive() function : usage variations - associative array with different values
10 echo "*** Testing array_merge_recursive() : assoc. array with diff. values to \$arr1 argument ***\n…
33 $arrays = array (
35 /*1*/ array('0' => 0, '1' => 0),
36 array("one" => 1, 'two' => 2, "three" => 1, 4 => 1),
39 /*3*/ array("f1" => 2.3333, "f2" => 2.3333, "f3" => array(1.1, 2.22)),
40 array("f1" => 1.2, 'f2' => 3.33, 3 => 4.89999922839999, 'f4' => array(1.2, 'f4' => 1.2)),
43 /*5*/ array(111 => "\tHello", "array" => "col\tor", 2 => "\v\fworld", 3 => "\tHello"),
44 array(111 => '\tHello', 'array' => 'col\tor', 2 => '\v\fworld', 3 => '\tHello'),
45 array(1 => "hello", "string" => $heredoc, $heredoc),
47 // array with object, unset variable and resource variable
48 /*8*/ array(11 => new classA(), "string" => @$unset_var, "resource" => $fp, new classA(), $fp),
51 // initialise the second array
52 $arr2 = array( 1 => "one", 2, "string" => "hello", "array" => array("a", "b", "c"));
54 // loop through each sub array of $arrays and check the behavior of array_merge_recursive()
76 *** Testing array_merge_recursive() : assoc. array with diff. values to $arr1 argument ***
79 array(2) {
86 array(6) {
97 ["array"]=>
98 array(3) {
109 array(4) {
120 array(8) {
135 ["array"]=>
136 array(3) {
147 array(3) {
153 array(2) {
161 array(7) {
167 array(2) {
179 ["array"]=>
180 array(3) {
191 array(4) {
199 array(2) {
207 array(8) {
215 array(2) {
227 ["array"]=>
228 array(3) {
239 array(4) {
242 ["array"]=>
250 array(7) {
253 ["array"]=>
254 array(4) {
277 array(4) {
280 ["array"]=>
288 array(7) {
291 ["array"]=>
292 array(4) {
315 array(3) {
324 array(6) {
328 array(2) {
340 ["array"]=>
341 array(3) {
352 array(5) {
367 array(8) {
372 array(2) {
389 ["array"]=>
390 array(3) {