Lines Matching refs:array
2 Test array_intersect() function : usage variations - assoc array with diff keys for 'arr1' argument
8 * The $arr2 argument is a fixed array
11 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr1 argument ***\n";
23 $arrays = array (
25 // empty array
26 /*1*/ array(),
29 array(0 => "0"),
30 array(1 => "1"),
31 array(1 => "1", 2 => "2", 3 => "3", 4 => "4"),
34 /*7*/ array('\tHello' => 111, 're\td' => "color",
36 array("\tHello" => 111, "re\td" => "color",
38 array("hello", $heredoc => "string"), // heredoc
40 // array with unset variable
41 /*10*/ array( @$unset_var => "hello"),
43 // array with mixed keys
44 /*11*/ array('hello' => 1, "fruit" => 2.2,
49 // array to be passed to $arr2 argument
50 $arr2 = array(1, "float", "f4", "hello", 2.2, 'color', "string", "pen\n", 11);
52 // loop through each sub-array within $arrays to check the behavior of array_intersect()
69 *** Testing array_intersect() : assoc array with diff keys to $arr1 argument ***
71 array(0) {
73 array(0) {
76 array(0) {
78 array(0) {
81 array(1) {
85 array(1) {
90 array(1) {
94 array(1) {
99 array(2) {
105 array(2) {
112 array(2) {
118 array(2) {
125 array(2) {
131 array(2) {
138 array(1) {
142 array(1) {
147 array(2) {
153 array(2) {