Herneyse; PHP ile bir cevapta benden gelsin!..
function sumNumber(...$numbers)
{
$total = 0;
if (!empty($numbers)) {
foreach($numbers as $number) {
(is_numeric($number)) ? $total += $number : null;
}
return (
$total
);
} else {
return(0);
}
}
echo(sumNumber(1, 3, 5, 'Hello', 7, 'World', 06, 42, 639, 3.14));