import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_unique_variation7.php
blob65d1d2c1bea952cceb0a4549e95e035c4876c730
1 <?php
2 /* Prototype : array array_unique(array $input)
3 * Description: Removes duplicate values from array
4 * Source code: ext/standard/array.c
5 */
7 /*
8 * Testing the functionality of array_unique() by passing an array having binary values.
9 */
11 echo "*** Testing array_unique() : array with binary data for \$input argument ***\n";
13 // array with binary values
14 $input = array( b"1", b"hello", "world", "str1" => "hello", "str2" => "world");
16 var_dump( array_unique($input) );
18 echo "Done";