array_product
计算数组中所有值的乘积
&reftitle.description;
intfloatarray_product
arrayarray
array_product 以整数或浮点数返回一个数组中所有值的乘积。
&reftitle.parameters;
array
这个数组。
&reftitle.returnvalues;
以整数或浮点数返回一个数组中所有值的乘积。
&reftitle.changelog;
&Version;
&Description;
8.3.0
当 array 值不能转换为 &integer; 或 &float; 时,现在会发出 E_WARNING。之前会忽略
&array; 和 &object;,而其它的值会转换为 &integer;。此外,现在也会转换定义了数字转换的对象(比如 GMP)而不是忽略它。
&reftitle.examples;
array_product 示例
]]>
&example.outputs;