Copyright © tutorialspoint.com
| array_product ( $array ); |
It returns the product of values in an array as an integer or float. That is it multiplies all the values and return final result.
| Parameter | Description |
|---|---|
| array | Required. Specifies an array. |
Product of values in an array.
Try out following example:
<?php $array=array(5,6,3); print_r(array_product($array)); ?> |
This will produce following result:
180 |
Copyright © tutorialspoint.com