English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP array_product() function calculates the product of all values in the array
array_product($array);
It returns the product of the values in the array as an integer or floating-point number.
Serial Number | Parameters and Description |
---|---|
1 | array(Required) It specifies an array. |
It returns the product of the values in the array.
Calculate the product of all values in the array
<?php $input = array(5,6,3); print_r(array_product($input)); ?>Test and see‹/›
Output Result:
90