Product of empty array

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320293 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2011-12-02 23:55:51 +00:00
parent 70c08c45a4
commit a331658633

View file

@ -48,6 +48,7 @@
$a = array(2, 4, 6, 8);
echo "product(a) = " . array_product($a) . "\n";
echo "product(array()) = " . array_product(array()) . "\n";
?>
]]>
@ -56,6 +57,7 @@ echo "product(a) = " . array_product($a) . "\n";
<screen>
<![CDATA[
product(a) = 384
product(array()) = 1
]]>
</screen>
</example>