Lines Matching refs:array

2 Test array_intersect_assoc() function : usage variations - assoc array with diff values for 'arr1' …
5 /* Prototype : array array_intersect_assoc(array $arr1, array $arr2 [, array $...])
8 * Source code: ext/standard/array.c
14 * The $arr2 argument passed is a fixed array
17 echo "*** Testing array_intersect_assoc() : assoc array with diff values to \$arr1 argument ***\n";
40 $arrays = array (
42 // empty array
43 /*1*/ array(),
46 array('0' => 0),
47 array("1" => 1),
48 array("one" => 1, 'two' => 2, "three" => 3, 4 => 4),
51 /*5*/ array("float" => 2.3333),
52 array("f1" => 1.2, 'f2' => 3.33, 3 => 4.89999922839999, 'f4' => 33333333.333),
55 /*7*/ array(111 => "\tHello", "red" => "col\tor", 2 => "\v\fworld", 3.3 => "pen\n"),
56 array(111 => '\tHello', "red" => 'col\tor', 2 => '\v\fworld', 3.3 => 'pen\n'),
57 array(1 => "hello", "heredoc" => $heredoc),
59 // array with object, unset variable and resource variable
60 /*10*/ array(11 => new classA(), "unset" => @$unset_var, "resource" => $fp),
62 // array with mixed values
63 /*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
68 // array to be passsed to $arr2 argument
69 $arr2 = array(0 => "0", 1, "two" => 2, "float" => 2.3333, "f1" => 1.2,
74 // loop through each sub-array within $arrrays to check the behavior of array_intersect_assoc()
94 *** Testing array_intersect_assoc() : assoc array with diff values to $arr1 argument ***
96 array(0) {
98 array(0) {
101 array(1) {
105 array(1) {
110 array(1) {
114 array(1) {
119 array(1) {
123 array(1) {
128 array(1) {
132 array(1) {
137 array(2) {
143 array(2) {
150 array(1) {
154 array(1) {
159 array(1) {
163 array(1) {
168 array(1) {
172 array(1) {
177 array(2) {
184 array(2) {
192 array(4) {
202 array(4) {