array_combine_variation6.phpt [plain text]
--TEST--
Test array_combine() function : usage variations - binary safe checking
--FILE--
<?php
echo "*** Testing array_combine() : binary safe checking ***\n";
$arr_binary = array(b"hello", b"world");
$arr_normal = array("hello", "world");
var_dump( array_combine($arr_binary, $arr_binary) );
var_dump( array_combine($arr_normal, $arr_binary) );
var_dump( array_combine($arr_binary, $arr_normal) );
echo "Done";
?>
--EXPECTF--
*** Testing array_combine() : binary safe checking ***
array(2) {
["hello"]=>
string(5) "hello"
["world"]=>
string(5) "world"
}
array(2) {
["hello"]=>
string(5) "hello"
["world"]=>
string(5) "world"
}
array(2) {
["hello"]=>
string(5) "hello"
["world"]=>
string(5) "world"
}
Done