array_unique_variation7.phpt [plain text]
--TEST--
Test array_unique() function : usage variations - binary safe checking
--FILE--
<?php
echo "*** Testing array_unique() : array with binary data for \$input argument ***\n";
$input = array( b"1", b"hello", "world", "str1" => "hello", "str2" => "world");
var_dump( array_unique($input) );
echo "Done";
?>
--EXPECTF--
*** Testing array_unique() : array with binary data for $input argument ***
array(3) {
[0]=>
string(1) "1"
[1]=>
string(5) "hello"
[2]=>
string(5) "world"
}
Done