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