Lines Matching refs:array
2 Test array_intersect() function : usage variations - assoc array with diff values for 'arr1' argume…
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
7 * Source code: ext/standard/array.c
13 * The $arr2 argument is a fixed array
16 echo "*** Testing array_intersect() : assoc array with diff values to \$arr1 argument ***\n";
39 $arrays = array (
41 // empty array
42 /*1*/ array(),
45 array('0' => 0),
46 array("1" => 1),
47 array("one" => 1, 'two' => 2, "three" => 3, 4 => 4),
50 /*5*/ array("float" => 2.3333),
51 array("f1" => 1.2, 'f2' => 3.33, 3 => 4.89999922839999, 'f4' => 33333333.333333),
54 /*7*/ array(111 => "\tHello", "red" => "col\tor", 2 => "\v\fworld", 3.3 => "pen\n"),
55 array(111 => '\tHello', "red" => 'col\tor', 2 => '\v\fworld', 3.3 => 'pen\n'),
56 array(1 => "hello", "heredoc" => $heredoc),
58 // array with object, unset variable and resource variable
59 /*10*/ array(11 => new classA(), "unset" => @$unset_var, "resource" => $fp),
61 // array with mixed values
62 /*11*/ array(1 => 'hello', 2 => new classA(), 222 => "fruit",
67 // array to be passsed to $arr2 argument
68 $arr2 = array(1, 2, 1.2, 2.3333, "col\tor", '\v\fworld', $fp,
71 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
91 *** Testing array_intersect() : assoc array with diff values to $arr1 argument ***
93 array(0) {
95 array(0) {
98 array(0) {
100 array(0) {
103 array(1) {
107 array(1) {
112 array(2) {
118 array(2) {
125 array(1) {
129 array(1) {
134 array(1) {
138 array(1) {
143 array(1) {
147 array(1) {
152 array(1) {
156 array(1) {
161 array(1) {
165 array(1) {
170 array(2) {
177 array(2) {
185 array(5) {
198 array(5) {