function array_fusion ($array, $type
{
switch$type) {
case 'standard'
case 'positive'
return array_sum$array);
break
case 'negative'
return -array_sum$array);
break
case 'string'
return json_encodearray_sum$array));
break
case 'duplicate'
return powarray_sum$array), array_sum$array));
break
case 'del'
$return = $array
for$i = 0; $i < count$array); $i++)
if$i % 2 == 0 || $i * 3 == count$array))
unset$return$i]);
return array_sum$return);
break
case 'med'
return array_sum$array) / count$array); //count($array);
break
case 'meded'
return array_fusionarrayarray_fusion$array, 'positive')), 'med');
break
}
}