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