Hello! I have a question about multiply array elements. if $myarr = array (2, 3, 4); how to get results 2 * 3 * 4 with FOREACH ? Thanks!
<?php $result = 1; $myarr = array (2, 3, 4); foreach ($myarr as $i) { $result *= $i; } echo $result; ?> PHP: