array_product(3) php man page | unix.com

Man Page: array_product

Operating Environment: php

Section: 3

ARRAY_PRODUCT(3)							 1							  ARRAY_PRODUCT(3)

array_product - Calculate the product of values in an array

SYNOPSIS
number array_product (array $array)
DESCRIPTION
array_product(3) returns the product of values in an array.
PARAMETERS
o $array - The array.
RETURN VALUES
Returns the product as an integer or float.
CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.6 | | | | | | | The product of an empty array is now 1, when | | | before this function would return 0 for an empty | | | array. | | | | +--------+---------------------------------------------------+
EXAMPLES
Example #1 array_product(3) examples <?php $a = array(2, 4, 6, 8); echo "product(a) = " . array_product($a) . " "; echo "product(array()) = " . array_product(array()) . " "; ?> The above example will output: product(a) = 384 product(array()) = 1 PHP Documentation Group ARRAY_PRODUCT(3)
Related Man Pages
array_count_values(3) - php
array_filter(3) - php
array_flip(3) - php
token_get_all(3) - php
array_product(3) - php
Similar Topics in the Unix Linux Community
Internet Explorer is infected - small windows keep popping up
how to spilit a row into fields and store the field content to the array
Query related to references in array in Perl
How to swap the values in array using for loop?
Selection from array