cvs: phpdoc-pl /reference/array/functions ksort.xml

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

« previous php.doc.pl (#764) next »