mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
- 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:
parent
d777fcac15
commit
56fe04f274
1 changed files with 9 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue