I have a function in php:
function cmp_key($lst){
$itersect_size = count(array_intersect($zset, $lst)); //zset is a list which i have
return $intersect_size,-count($lst)
}
and then this code in python:
list_with_biggest_intersection = max(iterable,key = cmp_key)
how can i do the above line of code in php given that i want to use the php function cmp_key
as the key for the max function...