Calculate Multiplication Of All Array Values In Php

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