If you wish to create intersection with arrays that are empty. Than the result of intersection is empty array.
If you wish to change this. I sugest that you do this.
It simply "ignores" empty arrays. Before loop use 1st array.
<?php
$a = array();
$a[] = 1;
$a[] = 2;
$a[] = 3;
$b = array();
$b[] = 4;
$b[] = 5;
$b[] = 1;
$c = array();
$c[] = 1;
$c[] = 5;
$d = array();
$kb=array('a','b','c','d');
$out = $a;
foreach($kb as $k){
if(!empty(${$k})) $out = array_intersect($out,${$k});
};
print_r($out);
print_r(array_intersect($a,$b,$c,$d));
?>