Lines Matching refs:array
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
7 * Source code: ext/standard/array.c
13 * The $arr1 argument is a fixed array.
48 // array to be passsed to $arr1 argument
49 $arr1 = array (
58 $arrays = array (
59 /*1*/ array(1, 2), // array with default keys and numeric values
60 array(1.1, 2.2), // array with default keys & float values
61 array(false,true), // array with default keys and boolean values
62 array(), // empty array
63 /*5*/ array(NULL), // array with NULL
64 …array("a\v\f","aaaa\r","b","b\tbbb","c","\[\]\!\@\#\$\%\^\&\*\(\)\{\}"), // array with double quo…
65 …array('a\v\f','aaaa\r','b','b\tbbb','c','\[\]\!\@\#\$\%\^\&\*\(\)\{\}'), // array with single quo…
66 … array($blank_line, $multiline_string, $diff_whitespaces, $numeric_string), // array with heredocs
69 /*9*/ array(1 => "one", 2 => "two", 3 => "three"), // explicit numeric keys, string values
70 array("one" => 1, "two" => 2, "three" => 3 ), // string keys & numeric values
71 array( 1 => 10, 2 => 20, 4 => 40, 3 => 30), // explicit numeric keys and numeric values
72 array( "one" => "ten", "two" => "twenty", "three" => "thirty"), // string key/value
73 array("one" => 1, 2 => "two", 4 => "four"), //mixed
75 // associative array, containing null/empty/boolean values as key/value
76 /*14*/ array(NULL => "NULL", null => "null", "NULL" => NULL, "null" => null),
77 array(true => "true", false => "false", "false" => false, "true" => true),
78 array("" => "emptyd", '' => 'emptys', "emptyd" => "", 'emptys' => ''),
79 array(1 => '', 2 => "", 3 => NULL, 4 => null, 5 => false, 6 => true),
80 array('' => 1, "" => 2, NULL => 3, null => 4, false => 5, true => 6),
82 // array with repetative keys
83 /*19*/ array("One" => 1, "two" => 2, "One" => 10, "two" => 20, "three" => 3)
86 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
105 array(3) {
113 array(3) {
122 array(1) {
126 array(1) {
131 array(3) {
139 array(3) {
148 array(0) {
150 array(0) {
153 array(2) {
159 array(2) {
166 array(1) {
171 array(1) {
177 array(1) {
181 array(1) {
186 array(2) {
200 array(2) {
215 array(2) {
221 array(2) {
228 array(3) {
236 array(3) {
245 array(0) {
247 array(0) {
250 array(1) {
254 array(1) {
259 array(3) {
267 array(3) {
276 array(2) {
282 array(2) {
289 array(3) {
297 array(3) {
306 array(3) {
314 array(3) {
323 array(3) {
331 array(3) {
340 array(1) {
344 array(1) {
349 array(0) {
351 array(0) {