Question du test PHP7

Archivée

Que va afficher ce code ?

<?php
declare(strict_types=1);

function sumOfInts(int ...$ints)
{
    return array_sum($ints);
}

var_dump(sumOfInts(2, '3', 4.1));
Auteur: Julien BreuxStatut : Archivée(Nouvelle question !)Question passée 698 fois
-1
Évaluations de la communauté
developer avatar
Umar
24/07/2022
I ran this code and got a fatal error which is my answer, but it's marked as wrong here? https://www.tehplayground.com/pqWeNrhcVNMeI9iY
developer avatar
Auteur anonyme
05/09/2022
Thank you Umar, fixed it !