Ken Tossell wrote:
kennyt Thu Jan 1 17:59:00 2004 EDT
Modified files: /phpdoc/en/reference/array/functions sort.xml Log:
Added note that sort() kills existing keys.
Index: phpdoc/en/reference/array/functions/sort.xml
diff -u phpdoc/en/reference/array/functions/sort.xml:1.9 phpdoc/en/reference/array/functions/sort.xml:1.10
--- phpdoc/en/reference/array/functions/sort.xml:1.9 Fri Dec 26 04:56:59 2003
+++ phpdoc/en/reference/array/functions/sort.xml Thu Jan 1 17:59:00 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.sort">
<refnamediv>
@@ -17,6 +17,13 @@
This function sorts an array. Elements will be arranged from
lowest to highest when this function has completed.
</para>
+ <note>
+ <simpara>
+ This function assigns new keys for the elements in + <parameter>array</parameter>. It will remove any existing
+ keys you may have assigned, rather than just reordering the keys.
+ </simpara>
+ </note>
Here is a great place where you can add a sentence and a link on what function does not kill the keys...
Goba
