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));
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));