PHP 5 >= 5.1.0, PHP 7, PHP 8
array_product - Calculate the product of values in an array

array_product( array$array ): int|float

array_product returns the product of values in an array.



The array.

Return Values

Returns the product as an integer or float.

Example of array_product

Show all examples for array_product

PHP Version:

Function array_product:

Arrays Functions

Most used PHP functions