Lines Matching refs:array
2 Test array_intersect_assoc() function : usage variations - assoc array with diff keys for 'arr2' ar…
5 /* Prototype : array array_intersect_assoc(array $arr1, array $arr2 [, array $...])
8 * Source code: ext/standard/array.c
14 * The $arr1 argument passed is a fixed array.
17 echo "*** Testing array_intersect_assoc() : assoc array with diff keys to \$arr2 argument ***\n";
29 $arrays = array (
31 // empty array
32 /*1*/ array(),
35 array(0 => "0"),
36 array(1 => "1"),
37 array(1 => "1", 2 => "2", 3 => "3", 4 => "4"),
40 /*5*/ array(2.3333 => "float"),
41 array(1.2 => "f1", 3.33 => "f2",
46 /*7*/ array('\tHello' => 111, 're\td' => "color",
48 array("\tHello" => 111, "re\td" => "color",
50 array("hello", $heredoc => "string"), // heredoc
52 // array with unset variable
53 /*10*/ array( @$unset_var => "hello"),
55 // array with mixed keys
56 /*11*/ array('hello' => 1, "fruit" => 2.2,
61 // array to be passsed to $arr1 argument
62 $arr1 = array(0 => 0, 2 => "float", 4 => "f3", 33333333 => "f4",
66 // loop through each sub-array within $arrrays to check the behavior of array_intersect_assoc()
83 *** Testing array_intersect_assoc() : assoc array with diff keys to $arr2 argument ***
85 array(0) {
87 array(0) {
90 array(1) {
94 array(1) {
99 array(0) {
101 array(0) {
104 array(0) {
106 array(0) {
109 array(1) {
113 array(1) {
118 array(2) {
124 array(2) {
131 array(0) {
133 array(0) {
136 array(2) {
143 array(2) {
151 array(1) {
155 array(1) {
160 array(0) {
162 array(0) {
165 array(1) {
169 array(1) {