1--TEST--
2Test array_unique() function : usage variations - array with duplicate keys
3--FILE--
4<?php
5/*
6 * Testing the functionality of array_unique() by passing
7 * array having duplicate keys as values.
8*/
9
10echo "*** Testing array_unique() : array with duplicate keys for \$input argument ***\n";
11
12// initialize the array having duplicate keys
13$input = array( 1 => "one", 2 => "two", 2 => "2", 3 => "three", 1 => "1", "1", "2");
14var_dump( array_unique($input) );
15
16echo "Done";
17?>
18--EXPECT--
19*** Testing array_unique() : array with duplicate keys for $input argument ***
20array(3) {
21  [1]=>
22  string(1) "1"
23  [2]=>
24  string(1) "2"
25  [3]=>
26  string(5) "three"
27}
28Done
29