Question from the PHP7 test

Archived

What will this code display?

<?php
declare(strict_types= 1);

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

var_dump(sumOfInts(2, '3', 4.1));
Author: Julien BreuxStatus: Archived(New question!)Question passed 698 times
-1
Community EvaluationsNo one has reviewed this question yet, be the first!