cvs: phpdoc /en/reference/array/functions array-multisort.xml

From: Date: Wed, 21 Nov 2007 15:01:31 +0000
Subject: cvs: phpdoc /en/reference/array/functions array-multisort.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-413@lists.php.net to get a copy of this message
vrana Wed Nov 21 15:01:31 2007 UTC Modified files: /phpdoc/en/reference/array/functions array-multisort.xml Log: Simpler example (bug #42889) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/array/functions/array-multisort.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc/en/reference/array/functions/array-multisort.xml diff -u phpdoc/en/reference/array/functions/array-multisort.xml:1.19 phpdoc/en/reference/array/functions/array-multisort.xml:1.20 --- phpdoc/en/reference/array/functions/array-multisort.xml:1.19 Wed Jun 20 22:24:15 2007 +++ phpdoc/en/reference/array/functions/array-multisort.xml Wed Nov 21 15:01:30 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> +<!-- $Revision: 1.20 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.11 --> <refentry xml:id="function.array-multisort" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -79,8 +79,8 @@ <programlisting role="php"> <![CDATA[ <?php -$ar1 = array("10", 100, 100, "a"); -$ar2 = array(1, 3, "2", 1); +$ar1 = array(10, 100, 100, 0); +$ar2 = array(1, 3, 2, 4); array_multisort($ar1, $ar2); var_dump($ar1); @@ -89,23 +89,23 @@ ]]> </programlisting> <para> - In this example, after sorting, the first array will contain "10", - "a", 100, 100. The second array will contain 1, 1, "2", 3. The + In this example, after sorting, the first array will contain 0, + 10, 100, 100. The second array will contain 4, 1, 2, 3. The entries in the second array corresponding to the identical entries in the first array (100 and 100) were sorted as well. </para> <screen> <![CDATA[ array(4) { - [0]=> string(2) "10" - [1]=> string(1) "a" + [0]=> int(0) + [1]=> int(10) [2]=> int(100) [3]=> int(100) } array(4) { - [0]=> int(1) + [0]=> int(4) [1]=> int(1) - [2]=> string(1) "2" + [2]=> int(2) [3]=> int(3) } ]]>

« previous php.doc.cvs (#413) next »