TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
624 B

--TEST--
Test array_unique() function : usage variations - binary safe checking
--FILE--
<?php
/*
* Testing the functionality of array_unique() by passing an array having binary values.
*/
echo "*** Testing array_unique() : array with binary data for \$input argument ***\n";
// array with binary values
$input = array( b"1", b"hello", "world", "str1" => "hello", "str2" => "world");
var_dump( array_unique($input) );
echo "Done";
?>
--EXPECT--
*** 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