array_product

It finds the product of values in an array

Example

<?php
echo “<pre>”;
$array1 = array(2, 4,1, 3);
$array2 = array_product($array1);
print_r($array2);
?>

Output

24