PHP array_product function
Like this blog? Consider exploring one of our sponsored banner ads...
array_product
(PHP 5 >= 5.1.0RC1)
array_product — Calculate the product of values in an arrayDescriptionnumber array_product ( array array )
array_product() returns the product of values
in an array as an integer or float.
Example 1. array_product() examples
$a = array(2, 4, 6, 8); echo "product(a) = " . array_product($a) . "\n";
The above example will output:
product(a) = 384About this entry
You’re currently reading “PHP array_product function,” an entry on BRADINO
- Published:
- 2.26.07 / 1am
- Category:
- PHP Functions
- Tags:
No comments
Jump to comment form | comments rss [?] | trackback uri [?]