How do I multiply the values of an array? So $x = array(1, 2, 3, 4, 5); PHP: I want to multiply them as quick and as easy as possible so I get the answer 120? Thanks.
Use "array_product" Like this: <?php $x = array(1, 2, 3, 4, 5); echo array_product($x); ?> Code (markup):