The array_product() function used for returns the product of element in an array.
Example
$array=array(3,5,3);
echo(array_product($array));
Output
45
The array_sum() function used for the sum of values in an array.
Example
$array=array(2,5,5);
echo array_sum($array);
Output
12
Copyright ©2022 coderraj.com. All Rights Reserved.