Lines Matching refs:array

2 Test array_intersect() function : usage variations - assoc array with diff values for 'arr1' argume…
8 * The $arr2 argument is a fixed array
11 echo "*** Testing array_intersect() : 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.333333),
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(1, 2, 1.2, 2.3333, "col\tor", '\v\fworld', $fp,
66 // loop through each sub-array within $arrays to check the behavior of array_intersect()
86 *** Testing array_intersect() : assoc array with diff values to $arr1 argument ***
88 array(0) {
90 array(0) {
93 array(0) {
95 array(0) {
98 array(1) {
102 array(1) {
107 array(2) {
113 array(2) {
120 array(1) {
124 array(1) {
129 array(1) {
133 array(1) {
138 array(1) {
142 array(1) {
147 array(1) {
151 array(1) {
156 array(1) {
160 array(1) {
165 array(2) {
172 array(2) {
180 array(5) {
193 array(5) {