Lines Matching refs:array
2 Test array_intersect_assoc() function : usage variations - assoc array with diff values for 'arr1' …
8 * The $arr2 argument passed is a fixed array
11 echo "*** Testing array_intersect_assoc() : assoc array with diff values to \$arr1 argument ***\n";
34 $arrays = array (
36 // empty array
37 /*1*/ array(),
40 array('0' => 0),
41 array("1" => 1),
42 array("one" => 1, 'two' => 2, "three" => 3, 4 => 4),
45 /*5*/ array("float" => 2.3333),
46 array("f1" => 1.2, 'f2' => 3.33, 3 => 4.89999922839999, 'f4' => 33333333.333),
49 /*7*/ array(111 => "\tHello", "red" => "col\tor", 2 => "\v\fworld", 3 => "pen\n"),
50 array(111 => '\tHello', "red" => 'col\tor', 2 => '\v\fworld', 3 => 'pen\n'),
51 array(1 => "hello", "heredoc" => $heredoc),
53 // array with object, unset variable and resource variable
54 /*10*/ array(11 => new classA(), "unset" => @$unset_var, "resource" => $fp),
56 // array with mixed values
57 /*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
62 // array to be passsed to $arr2 argument
63 $arr2 = array(0 => "0", 1, "two" => 2, "float" => 2.3333, "f1" => 1.2,
68 // loop through each sub-array within $arrays to check the behavior of array_intersect_assoc()
88 *** Testing array_intersect_assoc() : assoc array with diff values to $arr1 argument ***
90 array(0) {
92 array(0) {
95 array(1) {
99 array(1) {
104 array(1) {
108 array(1) {
113 array(1) {
117 array(1) {
122 array(1) {
126 array(1) {
131 array(2) {
137 array(2) {
144 array(1) {
148 array(1) {
153 array(1) {
157 array(1) {
162 array(1) {
166 array(1) {
171 array(2) {
178 array(2) {
186 array(4) {
196 array(4) {