1--TEST--
2Test array_unique() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing array_unique() : basic functionality ***\n";
6
7// array with default keys
8$input = array(1, 2, "1", '2');
9var_dump( array_unique($input) );
10
11// associative array
12$input = array("1" => "one", 1 => "one", 2 => "two", '2' => "two");
13var_dump( array_unique($input) );
14
15// mixed array
16$input = array("1" => "one", "two", "one", 2 => "two", "three");
17var_dump( array_unique($input) );
18
19echo "Done";
20?>
21--EXPECT--
22*** Testing array_unique() : basic functionality ***
23array(2) {
24  [0]=>
25  int(1)
26  [1]=>
27  int(2)
28}
29array(2) {
30  [1]=>
31  string(3) "one"
32  [2]=>
33  string(3) "two"
34}
35array(3) {
36  [1]=>
37  string(3) "one"
38  [2]=>
39  string(3) "two"
40  [4]=>
41  string(5) "three"
42}
43Done
44