what is the difference between array_udiff_assoc and array_diff_uassoc
for array_udiff_assoc i get this thing
<?php
function myfunction($v1,$v2)
{
if ($v1===$v2)
{
return 0;
}
return 1;
}
$a1=array("a"=>"Cat","b"=>"Dog","c"=>"Horse");
$a2=array("a"=>"Cat","b"=>"Horse","c"=>"Dog");
print_r(array_udiff_assoc($a1,$a2,"myfunction"));
?>
result
Array ( [b] Dog [c] => Horse )
also array_diff_uassoc
<?php
function myfunction($v1,$v2)
{
if ($v1===$v2)
{
return 0;
}
return 1;
}
$a1=array("a"=>"Cat","b"=>"Dog","c"=>"Horse");
$a2=array("a"=>"Cat","b"=>"Horse","c"=>"Dog");
print_r(array_diff_uassoc($a1,$a2,"myfunction"));
?>
result is same as first one
Array ( [b] Dog [c] => Horse )
Is the have any difference, if have what is that. Php manual does not says that they are alias, as they used to say.