cvs: phpdoc-pl /reference/array/functions arsort.xml
| From: | Leszek Krupinski | Date: | Fri, 31 Mar 2006 07:20:35 +0000 |
| Subject: | cvs: phpdoc-pl /reference/array/functions arsort.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-762@lists.php.net to get a copy of this message | ||
leszek Fri Mar 31 07:20:35 2006 UTC
Modified files:
/phpdoc-pl/reference/array/functions arsort.xml
Log:
- updated to EN 1.12
http://cvs.php.net/viewcvs.cgi/phpdoc-pl/reference/array/functions/arsort.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc-pl/reference/array/functions/arsort.xml
diff -u phpdoc-pl/reference/array/functions/arsort.xml:1.5
phpdoc-pl/reference/array/functions/arsort.xml:1.6
--- phpdoc-pl/reference/array/functions/arsort.xml:1.5 Sat Feb 26 01:03:49 2005
+++ phpdoc-pl/reference/array/functions/arsort.xml Fri Mar 31 07:20:34 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.11 Maintainer: leszek Status: ready -->
-<!-- $Revision: 1.5 $ -->
+<!-- EN-Revision: 1.12 Maintainer: leszek Status: ready -->
+<!-- $Revision: 1.6 $ -->
<refentry id="function.arsort">
<refnamediv>
<refname>arsort</refname>
@@ -31,8 +31,7 @@
<?php
$owoce = array("d" => "cytryna, "a" => "pomarañcza",
"b" => "banan", "c" => "jab³ko");
arsort($owoce);
-reset($owoce);
-while (list($key, $val) = each($owoce)) {
+foreach ($owoce as $key => $val) {
echo "$key = $val\n";
}
?>