← All docs

array_product()

Calculate the product of values in an array.

array_product()

function array_product(array $array): int

Calculate the product of values in an array.

Parameters:

  • $array (array)

Returns: int

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how array_product is implemented in the compiler, see the internals page.