array_product

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

Example #1 array_product examples

Result: product(a) = 384 product(array()) = 1
PHP Version:


Example #2 of array_product

PHP Version: