Lines Matching refs:array

5 /* Prototype  : array array_diff(array $arr1, array $arr2 [, array ...])
8 * Source code: ext/standard/array.c
17 //Test indexed array with integers as elements
18 $array_int1 = array (1, 2, 3, 4);
19 $array_int2 = array (3, 4, 5, 6);
21 echo "-- Test indexed array with integers as elements --\n";
26 //Test indexed array with strings as elements
27 $array_string1 = array ('one', 'two', 'three', 'four');
28 $array_string2 = array ('three', 'four', 'five', 'six');
30 echo "-- Test indexed array with strings as elements --\n";
34 //Test associative array with strings as keys and integers as elements
35 $array_assoc_int1 = array ('one' => 1, 'two' => 2, 'three' => 3, 'four' => 4);
36 $array_assoc_int2 = array ('three' => 3, 'four' => 4, 'five' => 5, 'six' => 6);
38 echo "-- Test associative array with strings as keys and integers as elements --\n";
42 //Test associative array with strings as keys and elements
43 $array_assoc_str1 = array ('one' => 'un', 'two' => 'deux', 'three' => 'trois', 'four' => 'quatre');
44 $array_assoc_str2 = array ('three' => 'trois', 'four' => 'quatre', 'five' => 'cinq', 'six' => 'six'…
46 echo "-- Test associative array with strings as keys and integers as elements --\n";
57 -- Test indexed array with integers as elements --
58 array(2) {
64 array(2) {
70 -- Test indexed array with strings as elements --
71 array(2) {
77 array(2) {
83 -- Test associative array with strings as keys and integers as elements --
84 array(2) {
90 array(2) {
96 -- Test associative array with strings as keys and integers as elements --
97 array(2) {
103 array(2) {
110 array(2) {