mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fix #21278: unpredictable results of sort
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@159269 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
58a08565cc
commit
043ff4ec30
1 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.sort">
|
||||
<refnamediv>
|
||||
|
@ -83,6 +83,12 @@ fruits[3] = orange
|
|||
The second parameter was added in PHP 4.
|
||||
</para>
|
||||
</note>
|
||||
<warning>
|
||||
<simpara>
|
||||
Be carefull when sorting arrays with mixed types values because
|
||||
<function>sort</function> can produce unpredictable results.
|
||||
</simpara>
|
||||
</warning>
|
||||
<para>
|
||||
See also <function>arsort</function>,
|
||||
<function>asort</function>, <function>ksort</function>,
|
||||
|
|
Loading…
Reference in a new issue