array_product

(no version information, might be only in CVS)

array_product --  Calculate the product of values in an array

Description

number array_product ( array array )

array_product() returns the product of values in an array as an integer or float.

Beispiel 1. array_product() examples

<?php

$a
= array(2, 4, 6, 8);
echo
"product(a) = " . array_product($a) . "\n";

?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

product(a) = 384

Hosting by: Hurra Communications GmbH
Generated: 2007-01-26 17:57:12