You can have a product of all numerical values in an array. Just you have to use the array_product() function to get this job done.
Code Example:
<?php $array = array( 10, 25, 100, 3); echo( array_product( $array ) ); ?>
Result:
75000
You can have a product of all numerical values in an array. Just you have to use the array_product() function to get this job done.
<?php $array = array( 10, 25, 100, 3); echo( array_product( $array ) ); ?>
75000