1--TEST--
2basic array_combine test
3--FILE--
4<?php
5	$array1 = array('green', 'red', 'yellow');
6	$array2 = array('1', '2', '3');
7	$array3 = array(0, 1, 2);
8	$array4 = array(TRUE, FALSE, NULL);
9	$a = array_combine($array1, $array1);
10	$b = array_combine($array1, $array2);
11	$c = array_combine($array1, $array3);
12	$d = array_combine($array1, $array4);
13	$e = array_combine($array2, $array1);
14	$f = array_combine($array2, $array2);
15	$g = array_combine($array2, $array3);
16	$h = array_combine($array2, $array4);
17	$i = array_combine($array3, $array1);
18	$j = array_combine($array3, $array2);
19	$k = array_combine($array3, $array3);
20	$l = array_combine($array3, $array4);
21	$m = array_combine($array4, $array1);
22	$n = array_combine($array4, $array2);
23	$o = array_combine($array4, $array3);
24	$p = array_combine($array4, $array4);
25	for($letter = "a"; $letter <= "p"; $letter++)
26	{
27	 print_r($$letter);
28	}
29?>
30--EXPECT--
31Array
32(
33    [green] => green
34    [red] => red
35    [yellow] => yellow
36)
37Array
38(
39    [green] => 1
40    [red] => 2
41    [yellow] => 3
42)
43Array
44(
45    [green] => 0
46    [red] => 1
47    [yellow] => 2
48)
49Array
50(
51    [green] => 1
52    [red] =>
53    [yellow] =>
54)
55Array
56(
57    [1] => green
58    [2] => red
59    [3] => yellow
60)
61Array
62(
63    [1] => 1
64    [2] => 2
65    [3] => 3
66)
67Array
68(
69    [1] => 0
70    [2] => 1
71    [3] => 2
72)
73Array
74(
75    [1] => 1
76    [2] =>
77    [3] =>
78)
79Array
80(
81    [0] => green
82    [1] => red
83    [2] => yellow
84)
85Array
86(
87    [0] => 1
88    [1] => 2
89    [2] => 3
90)
91Array
92(
93    [0] => 0
94    [1] => 1
95    [2] => 2
96)
97Array
98(
99    [0] => 1
100    [1] =>
101    [2] =>
102)
103Array
104(
105    [1] => green
106    [] => yellow
107)
108Array
109(
110    [1] => 1
111    [] => 3
112)
113Array
114(
115    [1] => 0
116    [] => 2
117)
118Array
119(
120    [1] => 1
121    [] =>
122)