<?php
$callArgs = array(
0 => "%s is called %d time instead of %d",
1 => "%s is called %d times instead of %d",
2 => 0,
3 => "54180a72890e8",
4 => 0,
5 => 1
);
$thisArgs = array(
0 => "%s is called %d time instead of %d",
1 => "%s is called %d times instead of %d",
2 => 0,
3 => "54180a72890e8",
4 => 0,
5 => 1
);
$callback = function($a, $b) {
return ($a == $b ? 0 : ($a < $b ? -1 : 1));
};
var_dump(array_uintersect_uassoc($callArgs, $thisArgs, $callback, $callback));
preferences:
36.56 ms | 402 KiB | 5 Q