Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<array_poparray_push>
Last updated: Tue, 19 Sep 2006

array_product

(PHP 5 >= 5.1.0RC1)

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.

Example 1. array_product() examples

<?php

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

?>

The above example will output:

product(a) = 384




<array_poparray_push>
Last updated: Tue, 19 Sep 2006