PHP array_product() 函数
2018-11-18 17:26 更新
PHP array_product() 函数
定义和用法
array_product() 函数计算并返回数组的乘积。
语法
array_product(array)
参数 | 描述 |
---|---|
array | 必需。规定数组。 |
技术细节
返回值: | 返回一个整数或者浮点数的乘积。 |
---|---|
PHP 版本: | 5.1.0+ |
更新日志: | 自 PHP 5.3.6 起,空数组的乘积为 1。在 PHP 5.3.6 之前,空数组的乘积为 0。 |
更多实例

以上内容是否对您有帮助:
更多建议: