cvs: phpdoc-pl /reference/array/functions krsort.xml
| From: | Leszek Krupinski | Date: | Fri, 31 Mar 2006 07:21:13 +0000 |
| Subject: | cvs: phpdoc-pl /reference/array/functions krsort.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-763@lists.php.net to get a copy of this message | ||
leszek Fri Mar 31 07:21:13 2006 UTC
Modified files:
/phpdoc-pl/reference/array/functions krsort.xml
Log:
- updated to EN 1.12
http://cvs.php.net/viewcvs.cgi/phpdoc-pl/reference/array/functions/krsort.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc-pl/reference/array/functions/krsort.xml
diff -u phpdoc-pl/reference/array/functions/krsort.xml:1.5
phpdoc-pl/reference/array/functions/krsort.xml:1.6
--- phpdoc-pl/reference/array/functions/krsort.xml:1.5 Thu Feb 24 01:03:47 2005
+++ phpdoc-pl/reference/array/functions/krsort.xml Fri Mar 31 07:21:13 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.krsort">
<refnamediv>
<refname>krsort</refname>
@@ -29,8 +29,7 @@
<?php
$owoce = array("d"=>"cytryna", "a"=>"pomarañcza",
"b"=>"banan", "c"=>"jab³ko");
krsort($owoce);
-reset($owoce);
-while (list($key, $val) = each($owoce)) {
+foreach ($owoce as $key => $val) {
echo "$key = $val\n";
}
?>