我有这两个associative arrays
// 针数组
$a = array(
"who" => "you",
"what" => "thing",
"where" => "place",
"when" => "hour"
);
// 干草堆数组
$b = array(
"when" => "time",
"where" => "place",
"who" => "you",
"what" => "thing"
);
我想检查它是否与它精确$a
匹配并且b
key
value
如果每个键和值$a
在...中都完全匹配。$b
我想将变量的值增加$c
1,依此类推...
正如我们从上面看到的那样,有 3 个可能的匹配项......并且据说结果会使 的值增加$c
3
$c = "3";
我希望有高手能帮助我...