<?php

declare(strict_types=1);

?>

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Eigene Funktionen</title>
</head>

<body>

<?php
function summiere (int ... $summanden) {
$summe = 0;

foreach($summanden As $wert) {
$summe += $wert;
}

echo "<p>$summe</p>\n";

}

summiere(1,5,7,2,4,"2",5,6,4,9,7,5);

?>

</body>
</html>