array_sum
laravel/framework
Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Calculate the sum of values in an array
array_sum
(array
$array
):
int
|
float
$this
->
assertDoesNotEnumerateCollection
(
$data
, function (
$collection
) {
$collection
->
flatMap
(function (
$values
) {
return
array_sum
(
$values
);
});
});
tests/Support/SupportLazyCollectionIsLazyTest.php