ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> phpdoc
phpdoc
[PHP-DOC] cvs: phpdoc /en/functions array.xml
by jim winstead other posts by this author
Dec 21 2001 12:55AM messages near this date
[PHP-DOC] cvs: phpdoc /en/functions filesystem.xml | [PHP-DOC] cvs: phpdoc /de Translators
jimw		Thu Dec 20 19:55:21 2001 EDT

  Modified files:              
    /phpdoc/en/functions	array.xml 
  Log:
  u?sort: add &note.func-callback;
  
Index: phpdoc/en/functions/array.xml
diff -u phpdoc/en/functions/array.xml:1.142 phpdoc/en/functions/array.xml:1.143
--- phpdoc/en/functions/array.xml:1.142	Thu Dec 20 19:25:09 2001
+++ phpdoc/en/functions/array.xml	Thu Dec 20 19:55:20 2001
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?> 
-<!-- $Revision: 1.142 $ --> 
+<!-- $Revision: 1.143 $ --> 
  <reference id="ref.array"> 
   <title> Array Functions</title>
   <titleabbrev> Arrays</titleabbrev>
@@ -3469,6 +3469,7 @@
       comparison functions.
      </para> 
     </note> 
+    &note.func-callback;
     <para> 
      See also: <function> usort</function>, <function>uksort</function>, 
      <function> sort</function>, <function>asort</function>, 
@@ -3500,10 +3501,9 @@
      needs to be sorted by some non-trivial criteria, you should use
      this function.
     </para> 
-    <para> 
-     <example> 
-      <title> <function>uksort</function> example</title>
-      <programlisting role="php"> 
+    <example> 
+     <title> <function>uksort</function> example</title>
+     <programlisting role="php"> 
 <![CDATA[
 function cmp ($a, $b) {   
     if ($a == $b) return 0;
@@ -3518,9 +3518,8 @@
     echo "$key: $value\n";
 }
 ]]> 
-      </programlisting> 
-     </example> 
-    </para> 
+     </programlisting> 
+    </example> 
     <para> 
      This example would display:
     </para> 
@@ -3536,6 +3535,7 @@
       </programlisting> 
      </informalexample> 
     </para> 
+    &note.func-callback;
     <para> 
      See also: <function> usort</function>, <function>uasort</function>, 
      <function> sort</function>, <function>asort</function>, 
@@ -3670,6 +3670,7 @@
        <function> usort</function> example using a member function of an object
       </title> 
       <programlisting role="php"> 
+<![CDATA[
 class TestObj {
     var $name;
 
@@ -3697,6 +3698,7 @@
 foreach ($a as $item) {
     print $item-> name."\n";
 }
+]]> 
       </programlisting> 
      </example> 
     </para> 
@@ -3712,15 +3714,13 @@
       </programlisting> 
      </informalexample> 
     </para> 
-    <para> 
-     <warning> 
-      <para> 
-       The underlying quicksort function in some C libraries (such as
-       on Solaris systems) may cause PHP to crash if the comparison
-       function does not return consistent values.
-      </para> 
-     </warning> 
-    </para> 
+    <warning> 
+     <para> 
+      The underlying quicksort function in some C libraries (such as
+      on Solaris systems) may cause PHP to crash if the comparison
+      function does not return consistent values.
+     </para> 
+    </warning> 
     <para> 
      See also: <function> uasort</function>,
      <function> uksort</function>, <function>sort</function>,

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved