- Added note about array_sum() behaviour in PHP < 4.0.6

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@66274 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Markus Fischer 2001-12-27 23:48:46 +00:00
parent d777fcac15
commit 56fe04f274

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.145 $ -->
<!-- $Revision: 1.146 $ -->
<reference id="ref.array">
<title>Array Functions</title>
<titleabbrev>Arrays</titleabbrev>
@ -1696,6 +1696,14 @@ echo "sum(b) = ".array_sum($b)."\n";
</programlisting>
</example>
</para>
<note>
<para>
PHP versions prior to 4.0.6 modified the passed array
itself and converted strings to numbers (which most
of the time converted them to zero, depending on
their value).
</para>
</note>
</refsect1>
</refentry>