(PHP 5 >= 5.1.0)
array_product — Calculate the product of values in an array
The array.
Returns the product as an integer or float.
Example #1 array_product() examples
<?php
$a = array(2, 4, 6, 8);
echo "product(a) = " . array_product($a) . "\n";
?>
위 예제의 출력:
product(a) = 384