9e127b9831
Most of this is ported over, except some omissions:
- array_filter, array_key_exists (suspected we had coverage already;
one is a bytecode, and one was rewritten in hhas recently)
- some random cases distinguishing init_null_variant vs. null_variant
29 linhas
417 B
PHP
29 linhas
417 B
PHP
<?php
|
|
|
|
function a() {
|
|
$array1 = array(
|
|
"a" => "green",
|
|
"b" => "brown",
|
|
"c" => "blue",
|
|
"red"
|
|
);
|
|
$array2 = array(
|
|
"a" => "green",
|
|
"yellow",
|
|
"red"
|
|
);
|
|
|
|
$result = array_diff_assoc($array1, $array2);
|
|
var_dump($result);
|
|
}
|
|
|
|
function b() {
|
|
$array1 = array(0, 1, 2);
|
|
$array2 = array("00", "01", "2");
|
|
$result = array_diff_assoc($array1, $array2);
|
|
var_dump($result);
|
|
}
|
|
|
|
a();
|
|
b();
|